@@ -526,10 +526,12 @@ objects that get input from and send output to the Shell window.
...
@@ -526,10 +526,12 @@ objects that get input from and send output to the Shell window.
When this window has the focus, it controls the keyboard and screen.
When this window has the focus, it controls the keyboard and screen.
This is normally transparent, but functions that directly access the keyboard
This is normally transparent, but functions that directly access the keyboard
and screen will not work. If <codeclass="docutils literal"><spanclass="pre">sys</span></code> is reset with <codeclass="docutils literal"><spanclass="pre">importlib.reload(sys)</span></code>,
and screen will not work. If <codeclass="docutils literal"><spanclass="pre">sys</span></code> is reset with <codeclass="docutils literal"><spanclass="pre">importlib.reload(sys)</span></code>,
IDLE’s changes are lost and things like <codeclass="docutils literal"><spanclass="pre">input</span></code>, <codeclass="docutils literal"><spanclass="pre">raw_input</span></code>, and
IDLE’s changes are lost and things like <codeclass="docutils literal"><spanclass="pre">input</span></code>, <codeclass="docutils literal"><spanclass="pre">raw_input</span></code>, and
<codeclass="docutils literal"><spanclass="pre">print</span></code> will not work correctly.</p>
<codeclass="docutils literal"><spanclass="pre">print</span></code> will not work correctly.</p>
<p>With IDLE’s Shell, one enters, edits, and recalls complete statements.
<p>With IDLE’s Shell, one enters, edits, and recalls complete statements.
Some consoles only work with a single physical line at a time.</p>
Some consoles only work with a single physical line at a time. IDLE uses
<codeclass="docutils literal"><spanclass="pre">exec</span></code> to run each statement. As a result, <codeclass="docutils literal"><spanclass="pre">'__builtins__'</span></code> is always