20 points · by targeted · 16y ago · 18 comments
Further reading: http://lucumr.pocoo.org/2010/5/25/wsgi-on-python-3
It will probably be around for a very long time. Some people are trapped by dependencies third-party libraries and others are trapped by mountains of existing scripts with scant tests.
The real question is when Python 3 will take-off and become dominant. We have at least a little evidence that the transition is happening, slowly but surely. At conferences, most attendees raise their hands saying that they have downloaded and tried Python 3. More and more third-party libraries are being converted. The newer Python books target Python 3. And, the python developer forums are showing a greater focus on working out some of the transition kinks.
IMO, Python 2.7 is wonderful on two fronts. It serves users who are stuck in 2.x land and it brings the two language variants closer together so that a transition becomes a smaller step.
However, I disagree strongly with the writer that having a Python 2 and a Python 3 side-by-side is a bad thing. Adoption was expected to be slow all along, and there's nothing wrong with supporting Python 2 for the indefinite future. Python 2 has been a rock for many years. Even in the release notes, it's mentioned that Python 2.7 will most probably be supported beyond the typical two years.
On top of that, I think that most people are waiting on Django, SciPy, Twisted, and others before making the jump.
We're steadily adding features to Python 3 which will make it an even nicer target, and things like NumPy are being ported soonish (there are python 3 builds available for it), so, yeah.
It's unfortunate we can not make the transition a cake walk for everyone, but as you said, Python 2 is a rock, and it would have been grossly irresponsible of us to just walk away from it. At this juncture, python 2.7 simply makes sense - it helps ease the ramp, and fixes bugs / makes other improvements, etc, etc.
Edit: sorry I wrote that when I was tired, forgot to add 'in 5 years time, that being the common version of Python'.
Back around 2001, Java apps were the scariest things to install on Linux systems because a good runtime didn't exist.
Eventually Java got it's act together and Python became the main offender. There were about four years that it was difficult to run the official BitTorrent client on Red Hat Linux because Guido decided to change the interface of the http libraries for no good reason.
Frankly, I've never worked with people more obsessed about not trashing existing code.
I'm betting someone will pick up the torch long after the core developers give up support. They want everyone to migrate to 3.1, but it's still highly unfeasible.
So perhaps one day 2.x will eventually pass on, but I don't foresee it happening within the next 3-5 years.
As for the OP - the transition/migration plan hasn't changed, and I'm personally sorry he feels burned, but Python 2.7 has always been on the roadmap for release. Our goal has been to make the 2.x series evolve into a gentle ramp into Python 3 as humanly possible.
The best way I've heard it put - use Python 3 if you can, Python 2 if you must.
The Core Team's work is a dream for maintaining my various Python code.
Python 2.x is so solid, I'm still relying on 2.5 but I'll definitely go freshen everything up for 2.7 (if only to get rid of my hand-rolled ordered dict implementations).
I tinker with 3 on new projects and am looking forward to using it more, but don't at all mind the reasoned thought and caution applied by all before trying to use it everywhere.
(Also, 3 / 2 should be 1, not 1.5, dammit!)