New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add lib2to3/__main__.py #55295
Comments
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 |
The attached patch adds lib2to3.__main__ and tweaks 2to3. |
Uh, I must say I find typing "lib2to3" quite ugly. |
I don't find it ideal either, but |
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). |
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. |
+1. Not sure this needs unit tests; I suppose you plan to add a note to the docs. |
Yeah, probably some little mention in the docs. |
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. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: