From 8b5a981e02a88d29313a66e1a1903392df6e2e2d Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Thu, 24 Sep 2015 01:39:30 -0400 Subject: [PATCH] Issue #22820: Explain need for *print* when running file from Idle editor. --- Doc/library/idle.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^