You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
assignee='https://github.com/terryjreedy'closed_at=<Date2017-09-04.06:33:57.650>created_at=<Date2017-09-01.06:56:13.600>labels= ['expert-IDLE', 'type-feature', '3.7']
title='Rename idlelib to just idle'updated_at=<Date2017-09-04.06:33:57.608>user='https://github.com/rhettinger'
I would also like Terry to consider renaming or aliasing idlelib to idle. That would further simplify the startup and it is a more appropriate name given that IDLE is used as an application rather than as a library.
idlelib.__main__ was added in 3.3: Patch was d543f2b
Author: Andrew Svetlov <andrew.svetlov@gmail.com>
Date: 3/26/2012 3:11:46 PM
Message: IDLE can be launched as python -m ildelib [misspelled]
#68400 was about backporting the addition to 2.7. I opened it after PEP-434 clearly made this permitted. The attempt had the problems described therein.
---
I quite agree that 'python -m idle' would be nicer than 'python -m idlelib', just as the latter is nicer than idlelib.idle or idlelib.pyshell. However, switching would break every text (and program) that tell people about any of the latter three. That would include many of my (and other people's) Stackoverflow comments and answers. I am therefore neither inclined to do this, nor do I think I am allowed to by out back-compatibility policies.
My impression is that the directory name linking needed to make both work without two copies is OS specific and not something that can be done in the repository. I don't even know how to do it properly on Windows. I am not going to try to get all installer makers to agree to make a change.
Hi Éric. Adding idle.py would make -m idle work. But I believe it would violate existing policy. So I will not propose it on python-ideas or pydev and hope no one else does either.
PEP-434, at least in part, formalized what I believe was older practice with respect to idlelib. I was surprised by the negative reaction that ensued and do not want a repeat.
Raymond, I have considered this at length and see no prospect for a positive change at this time.
This issue reminded me to open #75510, to index 'idlelib' and better document the options for starting IDLE..
Activity
rhettinger commentedon Sep 1, 2017
Currently, I start IDLE with:
It would be nice add __main__.py to simplify this to:
And perhaps, more boldly rename the directory so that we get:
serhiy-storchaka commentedon Sep 1, 2017
This is a duplicate of #68400.
rhettinger commentedon Sep 1, 2017
I would also like Terry to consider renaming or aliasing idlelib to idle. That would further simplify the startup and it is a more appropriate name given that IDLE is used as an application rather than as a library.
[-]Add __main__.py to IDLE[/-][+]Rename idlelib to just idle[/+]terryjreedy commentedon Sep 1, 2017
idlelib.__main__ was added in 3.3: Patch was d543f2b
Author: Andrew Svetlov <andrew.svetlov@gmail.com>
Date: 3/26/2012 3:11:46 PM
Message: IDLE can be launched as python -m ildelib [misspelled]
#68400 was about backporting the addition to 2.7. I opened it after PEP-434 clearly made this permitted. The attempt had the problems described therein.
---
I quite agree that 'python -m idle' would be nicer than 'python -m idlelib', just as the latter is nicer than idlelib.idle or idlelib.pyshell. However, switching would break every text (and program) that tell people about any of the latter three. That would include many of my (and other people's) Stackoverflow comments and answers. I am therefore neither inclined to do this, nor do I think I am allowed to by out back-compatibility policies.
My impression is that the directory name linking needed to make both work without two copies is OS specific and not something that can be done in the repository. I don't even know how to do it properly on Windows. I am not going to try to get all installer makers to agree to make a change.
merwok commentedon Sep 1, 2017
What about adding a simple Lib/idle.py that imports and runs the main function from idlelib?
terryjreedy commentedon Sep 4, 2017
Hi Éric. Adding idle.py would make -m idle work. But I believe it would violate existing policy. So I will not propose it on python-ideas or pydev and hope no one else does either.
PEP-434, at least in part, formalized what I believe was older practice with respect to idlelib. I was surprised by the negative reaction that ensued and do not want a repeat.
Raymond, I have considered this at length and see no prospect for a positive change at this time.
This issue reminded me to open #75510, to index 'idlelib' and better document the options for starting IDLE..
1 remaining item
[-]Rename idlelib to just idle[/-][+]Make 'python -m idle' work to start IDLE[/+]terryjreedy commentedon Aug 7, 2022
Summary of options to make 'python -m idle' start IDLE, with 3 more added.
Rename
idlelibtoidle. Easy but rejected for breaking too much.Symlink
idletoidlelib.Add /Lib/idle.py.
(0+1) Rename
idlelibtoidleand symlinkidlelibtoidle.(0+2) Rename
idlelib' toidleandidlelib`.Teach the -m function to recognize 'idle' as an alias for 'idlelib'.
leave /Lib alone; the mechanism could be used for other modules if desired (though I have no candidates at the moment).
pythongh-75500: Add idlelib section to IDLE doc
pythongh-75500: Add idlelib section to IDLE doc (pythonGH-95832)
gh-75500: Add idlelib section to IDLE doc (#95832)
pythongh-75500: Add idlelib section to IDLE doc (pythonGH-95832)
gh-75500: Add idlelib section to IDLE doc (GH-95832)
gh-75500: Add idlelib section to IDLE doc (GH-95832)
pythongh-75500: Add idlelib section to IDLE doc (python#95832)
pythongh-75500: Update idlelib/help.html (pythonGH-96523)
gh-75500: Update idlelib/help.html (#96523)
pythongh-75500: Update idlelib/help.html (pythonGH-96523)
gh-75500: Update idlelib/help.html (GH-96523)
gh-75500: Update idlelib/help.html (GH-96523) (#96524)