@@ -501,8 +501,14 @@ or immediately run an existing file before editing.</p>
...
@@ -501,8 +501,14 @@ or immediately run an existing file before editing.</p>
</div>
</div>
<divclass="section"id="python-shell-window">
<divclass="section"id="python-shell-window">
<h3>Python Shell window<aclass="headerlink"href="#python-shell-window"title="Permalink to this headline">¶</a></h3>
<h3>Python Shell window<aclass="headerlink"href="#python-shell-window"title="Permalink to this headline">¶</a></h3>
<p>The editing features described above work when entering code interactively.
<p>With IDLE’s Shell, one enters, edits, and recalls complete statements.
IDLE’s Shell window also responds to the following keys.</p>
Most consoles and terminals only work with a single physical line at a time.</p>
<p>When one pastes code into Shell, it is not compiled and possibly executed
until one hits <kbdclass="kbd docutils literal notranslate">Return</kbd>. One may edit pasted code first.
If one pastes more that one statement into Shell, the result will be a
<aclass="reference internal"href="exceptions.html#SyntaxError"title="SyntaxError"><codeclass="xref py py-exc docutils literal notranslate"><spanclass="pre">SyntaxError</span></code></a> when multiple statements are compiled as if they were one.</p>
<p>The editing features described in previous subsections work when entering
code interactively. IDLE’s Shell window also responds to the following keys.</p>