News for hackers. Stuff that matters.
Re:Show HN: Python-to-Python compiler for some 3.6 features ... by travisjungroth on Thursday April 27, 2017 @01:19PM (#14213168)
2 and 3 have like a 90% overlap. How can you call one a flaming garbage heap and the other a nice language?

I worked in Python 2 daily for about a year and a half (doing side stuff in 3), and switched over to Python 3 a few months ago. It's just not that big of a deal. Maybe it's because I'm pretty shielded from the madness of strings vs. bytes (or just import from future).

Re:Show HN: Python-to-Python compiler for some 3.6 features ... by cthalupa on Thursday April 27, 2017 @01:39PM (#14213318)
>How can you call one a flaming garbage heap and the other a nice language?

----------

try:

    import queue as queue
except ImportError:

    import Queue as queue
----------

They couldn't even consistently name portions of the standard library. Python 2 has a few random things where the first letter is capitalized while 99% of everything else isn't.

There's all sorts of things like this, where poor design decisions cause you to sit there with question marks appearing over your head. That 10% takes Python from being a joy to work with to being incredibly frustrating. I would be happy if I could just work exclusively in 3, but making sure things are backwards compatible to 2.7 is a frequent source of driving me up the wall.

>Maybe it's because I'm pretty shielded from the madness of strings vs. bytes (or just import from future).

If you lose this shielding it will help you understand my vitriolic response as well.

Re:Show HN: Python-to-Python compiler for some 3.6 features ... by amyjess on Thursday April 27, 2017 @02:08PM (#14213560)
Yet Python 3 still has logging.getLogger()
Re:Show HN: Python-to-Python compiler for some 3.6 features ... by orf on Thursday April 27, 2017 @01:30PM (#14213252)
> How can you call one a flaming garbage heap and the other a nice language?

The lack of UnicodeDecodeErrors.

Just because there is a 90% overlap doesn't mean one can't be a pile of trash (i think that's a bit harsh though). The improvements under the hood are huge (unicode, no 'new-style' classes, speed improvements etc) as well as syntactic sugar means that as time goes on Python 2 looks worse and worse.