diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-17 19:47:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-17 19:47:55 -0700 |
commit | 81f7899f517f18a45ab111598f9dd6d7210956a8 (patch) | |
tree | 348879a98ee05ff8ef4b59d08dac5c55ffbef8ad /Doc | |
parent | 14bac0088271d0a5c428e3468ef94fe7c73e93f7 (diff) | |
download | cpython-git-81f7899f517f18a45ab111598f9dd6d7210956a8.tar.gz |
bpo-5680: IDLE: Customize running a module (GH-13763)
The initialize options are 1) add command line options, which are appended to sys.argv as if passed on a real command line, and 2) skip the shell restart. The customization dialog is accessed by a new entry on the Run menu.
(cherry picked from commit 201bc2d18b60adb05810d2a6ab396047bc527088)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/idle.rst | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index d494c9766e..fb886a714d 100644 --- a/Doc/library/idle.rst +++ b/Doc/library/idle.rst @@ -207,9 +207,13 @@ Strip trailing whitespace Run menu (Editor window only) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. _python-shell: + Python Shell Open or wake up the Python Shell window. +.. _check-module: + Check Module Check the syntax of the module currently open in the Editor window. If the module has not been saved IDLE will either prompt the user to save or @@ -217,8 +221,10 @@ Check Module there is a syntax error, the approximate location is indicated in the Editor window. +.. _run-module: + Run Module - Do Check Module (above). If no error, restart the shell to clean the + Do :ref:`Check Module <check-module>`. If no error, restart the shell to clean the environment, then execute the module. Output is displayed in the Shell window. Note that output requires use of ``print`` or ``write``. When execution is complete, the Shell retains focus and displays a prompt. @@ -226,6 +232,14 @@ Run Module This is similar to executing a file with ``python -i file`` at a command line. +.. _run-custom: + +Run... Customized + Same as :ref:`Run Module <run-module>`, but run the module with customized + settings. *Command Line Arguments* extend :data:`sys.argv` as if passed + on a command line. The module can be run in the Shell without restarting. + + Shell menu (Shell window only) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |