Revision 6 as of 2010-09-24 04:22:01

Clear message

2to3 is a tool that automatically translates 2.x code to 3.x code. The code is located at http://svn.python.org/view/sandbox/trunk/2to3. At the moment, it is principally maintained by BenjaminPeterson.

Since Python 2.6, it has been included in the standard library. http://docs.python.org/library/2to3.html

Here are some project ideas:

* Some people have expressed interest in adding directives in the source to 2to3. So you could write:

* Last year there was a project to add confidence rankings to 2to3 changes. People could configure them to a certain level and deal with low confidence refactoring manually (or interactively). For some reason, the project was never finished. If you want to find more out about that, I suggest you contact the student or his mentor, Collin Winter.

* Some people have expressed an interest in seeing a 3to2 tool which would make 3.x code valid for ~2.5. Work is in progress, see 3to2

Unable to edit the page? See the FrontPage for instructions.