|
|
|
|
|
by cthalupa
3347 days ago
|
|
>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. |
|