5 ms·
I know you’re being sarcastic but anyway: I’m an oldie I guess as I started with Python 1.5.2 and I’ve been using 2.7 now as long as I can remember. But I had a
by js2 8y ago
I know you’re being sarcastic but anyway: I’m an oldie I guess as I started with Python 1.5.2 and I’ve been using 2.7 now as long as I can remember. But I had a new project last month so I used Python 3. There was basically nothing to learn. I mean, print is a function and classes don’t need to inherit from object and you’re like 99% of the way there. Learn and adopt new 3 functionally at your leisure. I’m honestly having no trouble switching between 2 and 3 and I’ve converted all my 2 code to be syntactically compatible with 3.
- alain_gilbert 8y agoUh-oh, and well, integer division now gives float $ python3 >>> 1/2 0.5 VS $ python2.7 >>> 1/2 0 which can cause a great load of bugs if you're just porting some existing code.
- js2 8y agoTrue, but I can’t recall a single time I wanted the integer division behavior of Python 2.
- aldanor 8y agoAnd strings are now strings, surprisingly, and not bytes...
- js2 8y agoWhy do you say surprisingly? I've been aware of the bytes/string split for a long time since it's probably Python 3's most prominent change, so I certainly wasn't surprised by it. The surprising part for me (after having read complaints about this change over the years) is that I haven't had any trouble with it.
- aldanor 8y agoApologies, it was a (failed) attempt at sarcasm :)