From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Date: Sun, 3 Jul 2022 17:39:20 +0000 (-0700)
Subject: IDLE doc: Tweek RESTART and Windows console start (GH-94530)
X-Git-Tag: v3.10.6~93
X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d793ebc11dd248d626bf2da14775703307b47887;p=thirdparty%2FPython%2Fcpython.git
IDLE doc: Tweek RESTART and Windows console start (GH-94530)
(cherry picked from commit 39c29f753e6d6f390dce5a36613c1e03f43d28ea)
Co-authored-by: Terry Jan Reedy
---
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst
index a4c9b1df8eb4..e91ec40c9add 100644
--- a/Doc/library/idle.rst
+++ b/Doc/library/idle.rst
@@ -594,7 +594,7 @@ One may edit pasted code first.
If one pastes more than one statement into Shell, the result will be a
:exc:`SyntaxError` when multiple statements are compiled as if they were one.
-Lines containing ``'RESTART'`` mean that the user execution process has been
+Lines containing ``RESTART`` mean that the user execution process has been
re-started. This occurs when the user execution process has crashed,
when one requests a restart on the Shell menu, or when one runs code
in an editor window.
@@ -775,7 +775,9 @@ IDLE's standard stream replacements are not inherited by subprocesses
created in the execution process, whether directly by user code or by
modules such as multiprocessing. If such subprocess use ``input`` from
sys.stdin or ``print`` or ``write`` to sys.stdout or sys.stderr,
-IDLE should be started in a command line window. The secondary subprocess
+IDLE should be started in a command line window. (On Windows,
+use ``python`` or ``py`` rather than ``pythonw`` or ``pyw``.)
+The secondary subprocess
will then be attached to that window for input and output.
If ``sys`` is reset by user code, such as with ``importlib.reload(sys)``,
diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html
index 95b59b91d70a..e8e7d2876097 100644
--- a/Lib/idlelib/help.html
+++ b/Lib/idlelib/help.html
@@ -664,7 +664,7 @@ until one hits Return, as sp
One may edit pasted code first.
If one pastes more than one statement into Shell, the result will be a
SyntaxError when multiple statements are compiled as if they were one.
-Lines containing`âRESTARTâ` mean that the user execution process has been
+
Lines containing RESTART mean that the user execution process has been
re-started. This occurs when the user execution process has crashed,
when one requests a restart on the Shell menu, or when one runs code
in an editor window.
@@ -821,7 +821,9 @@ and input from
sys.stdin or print or write to sys.stdout or sys.stderr,
-IDLE should be started in a command line window. The secondary subprocess
+IDLE should be started in a command line window. (On Windows,
+use python or py rather than pythonw or pyw.)
+The secondary subprocess
will then be attached to that window for input and output.
If sys is reset by user code, such as with importlib.reload(sys),
IDLEâs changes are lost and input from the keyboard and output to the screen
@@ -1139,7 +1141,7 @@ also used for testing.
- Last updated on Jun 26, 2022.
+ Last updated on Jul 03, 2022.
Found a bug?