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: IDLE: Remove config option 'editor on startup' and utilize command line options only
Type: enhancement Stage:
Components: IDLE Versions: Python 3.4
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: Guilherme.Simões, Todd.Rovito, roger.serwy, ronaldoussoren, seanfelipewolfe, taleinat, terry.reedy
Priority: normal Keywords:

Created on 2013-04-01 11:51 by Todd.Rovito, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (8)
msg185731 - (view) Author: Todd Rovito (Todd.Rovito) * Date: 2013-04-01 11:51
Based on enhancements from this issue:
http://bugs.python.org/issue6698

Comments from Tal Einat

The "editor-on-startup" config option should be removed. Running IDLE without arguments should open a shell. If IDLE is asked to open any files for editing, it should open just editor windows. IDLE should open both a shell window and one or more editor windows only when explicitly asked to do so on the command line.

If this is done, the -e option ("open an editor") would tell IDLE to open an empty editor window if no files are asked to be opened for editing. If no other arguments are given, IDLE will open just an editor window (no shell window). The -i option ("open a shell") would tell IDLE to open a shell window even if asked to open files for editing.

I think this is more obvious and easier to work with. It will also make the command line argument processing code simpler. And as a bonus we remove a config option :)

I will also post on idle-dev for discussion as Terry Reedy requested.
msg185733 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2013-04-01 12:20
I agree with the change, but keep in mind that at least on OSX a lot of users start IDLE by double clicking on the IDLE application in the Finder (or double-clicking a .py file) and as such don't have an easy way to specify the -e or -i options.
msg185737 - (view) Author: Guilherme Simões (Guilherme.Simões) * Date: 2013-04-01 12:42
IDLE is widely used by students and should have its most relevant settings available in the GUI also.
msg185753 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2013-04-01 18:11
I think whatever we do should be done on all versions. This is not a 'major rewrite'.

As I remember, installing Python on Windows adds 'edit with IDLE' to the right-click context menu. I cannot check at the moment because my substitute machine only has repository builds. I do not know what happens with multiple installs. Perhaps there should be 'Edit with Idle x.y' for each. 'Run with Idle' might be nice,
msg185768 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2013-04-01 20:53
A corollary of what I said is that if something is a bad idea for 3.3, it is probably a bad idea for 3.4.

On idle-dev thread "Feedback requested on issue 17609: ...", Bruce Sherwood says "For the thousands of students in our intro physics curriculum who use VIDLE (which I hope eventually can be replaced by using an updated IDLE), it is extremely important that starting IDLE (by clicking on an icon) display only an edit window at startup".

Idle is both a shell with editor and an editor with shell. The latter is a legitimate use case and I do not think we should remove the feature of making it a configuration option. So I think this issue should be closed as rejected (and see below).

On Windows, I believe one could accomplish Bruce's purpose with a customized Window's shortcut. Even is something similar is true on *nix and Mac, the details would probably be different on both. Learning all three systems is too much to expect of anyone.

I am sympathetic with the idea of making option processing easier (but not as the cost of making things harder for users). I believe using the newer argparse instead of the ancient getopt in PyShell.main might do that. It seems to me that the flow should be dict of builtin default updated by user configuration file updated by command line or function args. 'Function' refers to a possible new idlelib.idle.main for starting Idle from Python by passing options directly as arguments rather than by manipulating sys.argv.

I do not see 'remove a config option' as a goal.
msg185880 - (view) Author: Sean Wolfe (seanfelipewolfe) Date: 2013-04-03 03:25
fwiw, I like the configuration option. I tend to set idle to editor only, but the configuration option is useful to me.
msg185882 - (view) Author: Todd Rovito (Todd.Rovito) * Date: 2013-04-03 03:49
Thanks for the feedback I am good with closing but want to check with Roger because he suggested that we open a new issue to discuss.
msg185886 - (view) Author: Roger Serwy (roger.serwy) * (Python committer) Date: 2013-04-03 04:20
Todd, thank you for opening this issue. Given the feedback, it looks like we should keep the configuration. Feel free to close the issue.
History
Date User Action Args
2022-04-11 14:57:43adminsetgithub: 61809
2013-04-03 04:30:18Todd.Rovitosetstatus: open -> closed
resolution: rejected
2013-04-03 04:20:43roger.serwysetmessages: + msg185886
2013-04-03 03:49:13Todd.Rovitosetmessages: + msg185882
2013-04-03 03:25:16seanfelipewolfesetnosy: + seanfelipewolfe
messages: + msg185880
2013-04-01 20:53:03terry.reedysetmessages: + msg185768
2013-04-01 18:11:15terry.reedysetmessages: + msg185753
2013-04-01 12:42:09Guilherme.Simõessetnosy: + Guilherme.Simões
messages: + msg185737
2013-04-01 12:20:33ronaldoussorensetnosy: + ronaldoussoren
messages: + msg185733
2013-04-01 11:51:27Todd.Rovitocreate