Live data from Hacker News

How to support both Python 2 and 3

ondrejcertik.blogspot.com

21–23 of 23 posts

Re: How to support both Python 2 and 3

#21
post #19
post #5

this article takes awhile to get to the point, but the point is correct which is: > In other words, this is how it should be, that you write your code once, and you can use any supported language version to run it/compile it, or develop in. But for some reason, this obvious solution has been discouraged by Guido and other Python documents, as seen above. I just looked up the latest official Python docs, and that one…

> I'll start with the conclusion: making backwards incompatible version of a language is a terrible idea, and it was bad a mistake. > So let me fix that: I do recommend a single code base as the solution. > The original advice to think very separately about your 2.x and 3.x codebases was very wrong, has wasted a ton of time (since you end up porting to python 3 twice), and overall slowed down the adoption of py3k, a…

If 'raises questions about governance' means the leadership can't predict the future, then I agree. Else, this is not fair, since features were added to Python 2.6 to reduce migration pain (which incidentally enabled this single-codebase thing possible).

Re: How to support both Python 2 and 3

#22
post #20
post #19

Earlier quoted context omitted.

> I'll start with the conclusion: making backwards incompatible version of a language is a terrible idea, and it was bad a mistake. > So let me fix that: I do recommend a single code base as the solution. > The original advice to think very separately about your 2.x and 3.x codebases was very wrong, has wasted a ton of time (since you end up porting to python 3 twice), and overall slowed down the adoption of py3k, a…

Well zed seems to agree https://twitter.com/zedshaw/status/364118939233554432 > they've been keeping this "dual mode" option mostly a secret so as to not have to admit they fucked up

If this is not a joke, Zed is paranoid.

Re: How to support both Python 2 and 3

#23

I really love Python, it is my language of choice, bread and butter, and I've been using it since 2005. However, this backwards compatibility break is probably the worst thing that happened to the language, as I think it's creating more project stalling and work in total than is worth any improvements specifically stemming from backwards incompatible changes. It could be because python3 still has not become my target…

When 2.7 stops getting bug/security fixes? Current plan is 2015: http://www.python.org/dev/peps/pep-0373.
Post reply on HN