2to3 Help?

Terry Reedy tjreedy at udel.edu
Thu Jan 15 20:39:30 CET 2009

marco.m.petersen at gmail.com wrote:
> I have Python 3.0. I tried to use the 2to3 program included with the
> interpreter to convert some scripts for Python 2.5 to Python 3.0 ones.

I believe 2to3 is will work 'best' with files modified to use some new 
2.6 features (backported from 3.0) where 'best' means 'Runs with 2.6 and 
then with 3.0 after 2to3 conversion without hand editing'.  If you want 
to do a one-time conversion, then 2.5 to 3.0 is fine.

More information about the Python-list mailing list