This is just my personal opinion, but I feel like this is more of a meme than an actual problem, as if they just started out on 3 and heard other people talk about how 3 is way better.
Py2 is still great, but people talk about it like it's absolutely horrible. P3 is better in a few ways but the amount of people saying like 'Py2 must die' is an exaggeration of the problem of py2 existing.
Python 2 is OK, but there's nothing that it does that Python 3 doesn't do as well or better. Why use a language that's worse in every way in which they differ?
The actual biggest reason is the new style print function. I'm lazy and making a few extra keystrokes is enough to deter me. I get that it's lazy, and I get that it's not nearly enough of a change to worry about, but since you're asking, that's a big reason.
The other side is that nowadays I don't run into any sort of unicode troubles, and that I don't seem to actually benefit too much from the yield from stuff since I'm never writing anything that would need to be a generator.
I'm trying to think of the big killer features that aren't backported to python2... F strings? I guess that's nifty.
That's an awful reasons. Like, really, really basic. With that reasoning, all your variables should be 1-3 letters long.
If it's so hard for you, get a snippet for print in your preferred editor.
If it's so hard to migrate, there's tools like 2to3 to do all that for you (The print function conversion and more).
I can understand being reticent when you have a lot of legacy code in python2 or specific libraries that are not yet ported but the horrible implementation of print is about the worse reason I can think of. It's almost a newb programmer excuse but I'm sure that's not your case.
I'm never writing anything that would need to be a generator.
sigh. The irony of being lazy but not using "lazy"
-54
u/TankorSmash Dec 14 '17 edited Dec 15 '17
This is just my personal opinion, but I feel like this is more of a meme than an actual problem, as if they just started out on 3 and heard other people talk about how 3 is way better.
Py2 is still great, but people talk about it like it's absolutely horrible. P3 is better in a few ways but the amount of people saying like 'Py2 must die' is an exaggeration of the problem of py2 existing.
edit: http://www.asmeurer.com/python3-presentation/slides.html here's a list of great features.