[issue10070] 2to3 wishes for already-2to3'ed files

Éric Araujo report at bugs.python.org
Fri Nov 12 14:15:56 CET 2010


Éric Araujo <merwok at netwok.org> added the comment:

I think 2to3 is designed to take 2.x code and turn it into 3.x code.  Codebases using tricks and hacks to support both 2.x and 3.x (like the example you linked to) cannot be handled by 2to3.  You have to make a choice between manual maintenance of parallel codebases, automatic 2to3 translation or cross-version compatibility.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10070>
_______________________________________


More information about the Python-bugs-list mailing list