[Python-Dev] 2to3 porting HOWTO: setup.py question

Terry Reedy tjreedy at udel.edu
Tue Jul 24 11:30:43 CEST 2012


On 7/24/2012 12:44 AM, anatoly techtonik wrote:

> Python 3 check explicitly tells the reader that 2to3 should only be
> used in Python 3. Otherwise everybody need to guess when this *_2to3
> tools are triggered. As for me, I see no technical limitations why
> *_2to3 can not be run by Python 2 (PyPy, RPython or whatever). Maybe I
> don't have Python3, but want to build my package for Python 3. In
> ideal world it is possible.

This is not an ideal world and 2to3 is not good enough to convert files 
without further intervention and testing.

-- 
Terry Jan Reedy





More information about the Python-Dev mailing list