[Python-3000] Making 2to3 installable

Georg Brandl g.brandl at gmx.net
Sun Mar 16 21:34:49 CET 2008


Martin v. Löwis schrieb:
> After talking to Collin, I just committed a change to
> 2to3 to make it installable as an executable script
> called "2to3".
> 
> To do so, I had to wrap all the top-level modules
> into a package, and move the fixes and tests into
> that package. Lacking a better name, I called the
> library lib2to3. I also install pgen2 as a separate
> package.

Cool! With that in the 3k stdlib, the auto2to3 hook [1] will
work out of the box...

(It seems you missed a few old-style relative imports
in refactor.py, patcomp.py and pygram.py...)

cheers,
Georg

[1] http://dev.pocoo.org/hg/sandbox/file/tip/auto2to3.py



More information about the Python-3000 mailing list