Needed: Gentle transition path
Posted Oct 22, 2009 14:20 UTC (Thu) by
foom (subscriber, #14868)
In reply to:
Needed: Gentle transition path by epa
Parent article:
Proposal: Moratorium on Python language changes
That's pretty much the idea. But there's a couple problems:
Once you're on 2.6, without warnings, you need to run your code through the "2to3" converter..
It's a great idea, but it's not *perfect*. There's still a lot of manual work. Especially because mixed
in with all the syntax and other removals/deprecations, the fundamental string model
changed.As
the Python 3 "What's New" document says: "Everything you thought you knew about binary data and
Unicode has changed." So, basically every usage of python2 "str" (8bit) strings needs to be checked
by a human to see if it was intended to be a raw bytestring, or a textual string.
Many projects want to stay compatible with some version of Python < 2.6 for a year or so
more, since 2.6 just came out recently, and most users don't have it installed yet. E.g. RHEL 5 comes
with python 2.4, and the last Debian release comes with 2.5.
(Log in to post comments)