[issue31319] Rename idlelib to just idle

Terry J. Reedy report at bugs.python.org
Fri Sep 1 10:00:34 EDT 2017


Terry J. Reedy added the comment:

idlelib.__main__ was added in 3.3: Patch was d543f2b8b0b66af330aae6764e53495cda48fd4e
Author: Andrew Svetlov <andrew.svetlov at gmail.com>
Date: 3/26/2012 3:11:46 PM
Message: IDLE can be launched as python -m ildelib [misspelled]

#24212 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.

----------
superseder: Idle, 2.7, backport idlelib.__main__, enable py -m idlelib -> 

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31319>
_______________________________________


More information about the Python-bugs-list mailing list