This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: rename 2to3 & pydoc to 2to3.py & pydoc.py
Type: enhancement Stage: resolved
Components: 2to3 (2.x to 3.x conversion tool), Windows Versions: Python 3.1, Python 3.2, Python 3.3, Python 2.7, Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, benjamin.peterson, r.david.murray, srid
Priority: normal Keywords:

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:03adminsetgithub: 53524
2010-07-20 20:28:44sridsetmessages: + msg110965
2010-07-20 00:51:26r.david.murraysetmessages: + msg110846
2010-07-19 16:58:29Arfreversetnosy: + Arfrever
messages: + msg110781
2010-07-19 16:16:16sridsetmessages: + msg110773
2010-07-16 22:07:35r.david.murraysetstatus: open -> closed

nosy: + r.david.murray, benjamin.peterson
messages: + msg110513

resolution: not a bug
stage: resolved
2010-07-16 21:35:16sridsetmessages: + msg110504
title: rename 2to3 to 2to3.py -> rename 2to3 & pydoc to 2to3.py & pydoc.py
2010-07-16 21:34:27sridcreate