Issue 9278: rename 2to3 & pydoc to 2to3.py & pydoc.py (original) (raw)

Created on 2010-07-16 21:34 by srid, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (7)
msg110503 - (view) Author: Sridhar Ratnakumar (srid) Date: 2010-07-16 21:34
C:\>c:\Python26\Tools\scripts\2to3 'c:\Python26\Tools\scripts\2to3' is not recognized as an internal or external command, operable program or batch file. All other scripts in Tools\scripts directory have .py extension. Only 2to3 doesn't.
msg110504 - (view) Author: Sridhar Ratnakumar (srid) Date: 2010-07-16 21:35
(Same for pydoc)
msg110513 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-07-16 22:07
That's because, unlike the other tools, they actually get installed as commands.
msg110773 - (view) Author: Sridhar Ratnakumar (srid) Date: 2010-07-19 16:16
What do you mean by 'commands'? Being able to type '2to3' instead of '2to3.py' on *nix? Want me to open a new feature request for Windows support - perhaps by including a 2to3.bat/pydoc.bat (similar to idle.bat) in C:\PythonXY\Scripts? The idea is to let Windows users run 2to3 and pydoc; that's all.
msg110781 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) Date: 2010-07-19 16:58
.py extension is intended for pure-Python modules, not for Python scripts.
msg110846 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-07-20 00:51
On a windows install you will find Tools/scripts/2to3.py and Tools/scripts/pydocgui.pyw. Do you think there is something more needed?
msg110965 - (view) Author: Sridhar Ratnakumar (srid) Date: 2010-07-20 20:28
Ah, so the python.org installers do have the .py extension for these scripts. Only ActivePython doesn't. Perhaps msilib (something that we don't use) does the rename. Sorry for the confusion.
History
Date User Action Args
2022-04-11 14:57:03 admin set github: 53524
2010-07-20 20:28:44 srid set messages: +
2010-07-20 00:51:26 r.david.murray set messages: +
2010-07-19 16:58:29 Arfrever set nosy: + Arfrevermessages: +
2010-07-19 16:16:16 srid set messages: +
2010-07-16 22:07:35 r.david.murray set status: open -> closednosy: + r.david.murray, benjamin.petersonmessages: + resolution: not a bugstage: resolved
2010-07-16 21:35:16 srid set messages: + title: rename 2to3 to 2to3.py -> rename 2to3 & pydoc to 2to3.py & pydoc.py
2010-07-16 21:34:27 srid create