8000 IDLE doc: Tweek RESTART and Windows console start (#94530) · python/cpython@39c29f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39c29f7

Browse files
authored
IDLE doc: Tweek RESTART and Windows console start (#94530)
1 parent 7db1d2e commit 39c29f7

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Doc/library/idle.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ One may edit pasted code first.
594594
If one pastes more than one statement into Shell, the result will be a
595595
:exc:`SyntaxError` when multiple statements are compiled as if they were one.
596596

597-
Lines containing ``'RESTART'`` mean that the user execution process has been
597+
Lines containing ``RESTART`` mean that the user execution process has been
598598
re-started. This occurs when the user execution process has crashed,
599599
when one requests a restart on the Shell menu, or when one runs code
600600
in an editor window.
@@ -775,7 +775,9 @@ IDLE's standard stream replacements are not inherited by subprocesses
775775
created in the execution process, whether directly by user code or by
776776
modules such as multiprocessing. If such subprocess use ``input`` from
777777
sys.stdin or ``print`` or ``write`` to sys.stdout or sys.stderr,
778-
IDLE should be started in a command line window. The secondary subprocess
778+
IDLE should be started in a command line window. (On Windows,
779+
use ``python`` or ``py`` rather than ``pythonw`` or ``pyw``.)
780+
The secondary subprocess
779781
will then be attached to that window for input and output.
780782

781783
If ``sys`` is reset by user code, such as with ``importlib.reload(sys)``,

Lib/idlelib/help.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ <h3>Shell window<a class="headerlink" href="#shell-window" title="Permalink to t
664664
One may edit pasted code first.
665665
If one pastes more than one statement into Shell, the result will be a
666666
<a class="reference internal" href="exceptions.html#SyntaxError" title="SyntaxError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">SyntaxError</span></code></a> when multiple statements are compiled as if they were one.</p>
667-
<p>Lines containing`’RESTART’` mean that the user execution process has been
667+
<p>Lines containing <code class="docutils literal notranslate"><span class="pre">RESTART</span></code> mean that the user execution process has been
668668
re-started. This occurs when the user execution process has crashed,
669669
when one requests a restart on the Shell menu, or when one runs code
670670
in an editor window.</p>
@@ -821,7 +821,9 @@ <h3>Running user code<a class="headerlink" href="#running-user-code" title="Perm
821821
created in the execution process, whether directly by user code or by
822822
modules such as multiprocessing. If such subprocess use <code class="docutils literal notranslate"><span class="pre">input</span></code> from
823823
sys.stdin or <code class="docutils literal notranslate"><span class="pre">print</span></code> or <code class="docutils literal notranslate"><span class="pre">write</span></code> to sys.stdout or sys.stderr,
824-
IDLE should be started in a command line window. The secondary subprocess
824+
IDLE should be started in a command line window. (On Windows,
825+
use <code class="docutils literal notranslate"><span class="pre">python</span></code> or <code class="docutils literal notranslate"><span class="pre">py</span></code> rather than <code class="docutils literal notranslate"><span class="pre">pythonw</span></code> or <code class="docutils literal notranslate"><span class="pre">pyw</span></code>.)
826+
The secondary subprocess
825827
will then be attached to that window for input and output.</p>
826828
<p>If <code class="docutils literal notranslate"><span class="pre">sys</span></code> is reset by user code, such as with <code class="docutils literal notranslate"><span class="pre">importlib.reload(sys)</span></code>,
827829
IDLE’s changes are lost and input from the keyboard and output to the screen
@@ -1139,7 +1141,7 @@ <h3>Navigation</h3>
11391141
<br />
11401142
<br />
11411143

1142-
Last updated on Jun 26, 2022.
1144+
Last updated on Jul 03, 2022.
11431145
<a href="/bugs.html">Found a bug</a>?
11441146
<br />
11451147

0 commit comments

Comments
 (0)
0