[issue11086] add lib2to3/__main__.py

2011-02-22 Thread Brett Cannon
Brett Cannon added the comment: r88503 has the patch in 3.3 Didn't both with documenting it since I only expect core devs who are debugging something with 2to3 will want to use this approach. -- assignee: -> brett.cannon resolution: -> fixed stage: commit review -> committed/rejecte

[issue11086] add lib2to3/__main__.py

2011-02-04 Thread Brett Cannon
Brett Cannon added the comment: Yeah, probably some little mention in the docs. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11086] add lib2to3/__main__.py

2011-02-04 Thread Éric Araujo
Éric Araujo added the comment: +1. Not sure this needs unit tests; I suppose you plan to add a note to the docs. -- nosy: +eric.araujo ___ Python tracker ___ _

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Brett Cannon
Brett Cannon added the comment: Would needlessly break code for such a minor perk. I mean I doubt very many people will use this feature if it goes in. It's just rather nice for those who do want the feature to exist in the first place. -- ___ Pyth

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It is unfortunate that the cute name for the tool is not valid as a module name. How about renaming "lib2to3" to "to3". The offending leading digit is strictly redundant (there is no 1to3 after all). -- nosy: +belopolsky _

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Brett Cannon
Changes by Brett Cannon : -- stage: needs patch -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Brett Cannon
Brett Cannon added the comment: I don't find it ideal either, but ``python -m lib2to3`` gives complete control over which VM is used since it's specified right on the command line. I don't expect this to become the common way to invoke 2to3, just **a** way to invoke it. -- _

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: Uh, I must say I find typing "lib2to3" quite ugly. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Brett Cannon
Brett Cannon added the comment: The attached patch adds lib2to3.__main__ and tweaks 2to3. -- keywords: +patch Added file: http://bugs.python.org/file20636/2to3_main.diff ___ Python tracker

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Brett Cannon
New submission from Brett Cannon : There is no reason why the 2to3 script can't be gutted and turned into just a stub that uses runpy to call lib2to3.__main__. Also has the nice benefit that one can use ``-m lib2to3`` instead of having to use the 2to3 script. -- components: Library (Li