[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-17 Thread miss-islington
miss-islington added the comment: New changeset 81f7899f517f18a45ab111598f9dd6d7210956a8 by Miss Islington (bot) in branch '3.7': bpo-5680: IDLE: Customize running a module (GH-13763) https://github.com/python/cpython/commit/81f7899f517f18a45ab111598f9dd6d7210956a8 -- nosy: +miss-is

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-17 Thread miss-islington
miss-islington added the comment: New changeset ae526ee320d3feabba0aa4dffa9d52e39f8941dc by Miss Islington (bot) in branch '3.8': bpo-5680: IDLE: Customize running a module (GH-13763) https://github.com/python/cpython/commit/ae526ee320d3feabba0aa4dffa9d52e39f8941dc -- _

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: A more than minimal patch has been merged. Further work will be on new issues. Remaining problems not previously discussed: 1. Tab focus traversal is wrong. This is generic to Query subclasses that add widgets. See #37325. 2. When the customize box is c

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +14021 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14184 ___ Python tracker ___

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +14022 pull_request: https://github.com/python/cpython/pull/14185 ___ Python tracker ___ ___

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 201bc2d18b60adb05810d2a6ab396047bc527088 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-5680: IDLE: Customize running a module (GH-13763) https://github.com/python/cpython/commit/201bc2d18b60adb05810d2a6ab396047bc527088 --

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-03 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've pushed a change for a more generic dialog for a 'Run Custom' option and I changed the keybinding to Shift-F5. Sorry for not doing that on the initial commit; I didn't fully understand the difference between what you were asking for and the minimal vers

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Two design issues: 1. As I said 2017-06-20, msg296499, I expect to add more alternatives to the standard run to this menu option and dialog. (Cheryl, I should have pointed you to this post as well as the later ones.) I want to add just one new option to h

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks. Those seem reasonable for a first pass. -- ___ Python tracker ___ ___ Python-bugs-list

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-02 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've added a minimal change for running a module in the editor with command line arguments. Some notes: 1. The shortcut key (F7) can be entered while on the shell window. As of now, any of the Run menu shortcuts can be entered, so I didn't fix that bug as

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-02 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +13648 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13763 ___ Python tracker ___

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cheryl, go ahead after reading the notes above. Use an f-string for the runcommand argument and remember that it is run within the pristine user environment. Otherwise, let's start with minimal changes. -- ___ P

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: My suspicion about posix=False was wrong. >>> shlex.split(''' 1 "'a' 'b'" ''', posix=False) ['1', '"\'a\' \'b\'"'] # len(...[1]) = 9 >>> shlex.split(''' 1 '"a" "b"' ''') ['1', '"a" "b"'] # len = 7 f:\dev\3x>py -c "import sys; print(sys.argv)" 1 "'a' 'b'" ['-

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: When running IDLE normally, with a subprocess, it would be possible to pass arguments to python itself when IDLE restarts the user process (with shell.restart_shell()). That would be another issue. We would have to look at whether any options would disable

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-01 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'll can work on a PR for this, unless you want to do it based on your research. -- nosy: +cheryl.sabella ___ Python tracker ___ _

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3 recent 'doit' requests (2 on PR 1589) raise my priority for this issue. When a user runs a file from an editor, IDLE simulates, as well as it can, the user entering 'python -i path' in a system command line shell. Both on a command line and in IDLE, the