From cf5bf82e59c7436ec0af6a7e2771bf1208d4a71b Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Thu, 24 Sep 2015 01:39:25 -0400 Subject: [PATCH] Issue #22820: Explain need for *print* when running file from Idle editor. --- Doc/library/idle.rst | 7 ++++++- Lib/idlelib/help.html | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index bbbeaa2e2f7..c149aa91a35 100644 --- a/Doc/library/idle.rst +++ b/Doc/library/idle.rst @@ -206,7 +206,12 @@ Check Module Run Module Do Check Module (above). If no error, restart the shell to clean the - environment, then execute the module. + 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. + At this point, one may interactively explore the result of execution. + This is similar to executing a file with ``python -i file`` at a command + line. Shell menu (Shell window only) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html index b2948a34288..1324c327244 100644 --- a/Lib/idlelib/help.html +++ b/Lib/idlelib/help.html @@ -223,7 +223,12 @@ there is a syntax error, the approximate location is indicated in the Editor window.
Run Module
Do Check Module (above). If no error, restart the shell to clean the -environment, then execute the module.
+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. +At this point, one may interactively explore the result of execution. +This is similar to executing a file with python -i file at a command +line.
@@ -676,7 +681,7 @@ are currently:

The Python Software Foundation is a non-profit corporation. Please donate.
- Last updated on Sep 23, 2015. + Last updated on Sep 24, 2015. Found a bug?
Created using Sphinx 1.2.3.