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
Make 'python -m idle' work to start IDLE #75500
Comments
|
Currently, I start IDLE with: $ python -m idlelib.idleIt would be nice add __main__.py to simplify this to: $ python -m idlelibAnd perhaps, more boldly rename the directory so that we get: $ python -m idle |
|
This is a duplicate of #68400. |
|
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 #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. |
|
What about adding a simple Lib/idle.py that imports and runs the main function from idlelib? |
|
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.. |
|
Summary of options to make 'python -m idle' start IDLE, with 3 more added.
|
This enables accessing IDLE as 'idlelib' in the Doc Module listing. (cherry picked from commit 70fc964) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This enables accessing IDLE as 'idlelib' in the Doc Module listing.
This enables accessing IDLE as 'idlelib' in the Doc Module listing. (cherry picked from commit 70fc9641b56144854777aef29c145cd10789e3df) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
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: