<dd>Search for the currently selected string, if there is one.</dd>
<dd>Search for the currently selected string, if there is one.</dd>
<dt>Find in Files...</dt>
<dt>Find in Files...</dt>
<dd>Open a file search dialog. Put results in an new output window.</dd>
<dd>Open a file search dialog. Put results in a new output window.</dd>
<dt>Replace...</dt>
<dt>Replace...</dt>
<dd>Open a search-and-replace dialog.</dd>
<dd>Open a search-and-replace dialog.</dd>
<dt>Go to Line</dt>
<dt>Go to Line</dt>
...
@@ -517,13 +517,15 @@ set in the Options dialog.</li>
...
@@ -517,13 +517,15 @@ set in the Options dialog.</li>
<h3>25.5.3.2. IDLE-console differences<aclass="headerlink"href="#idle-console-differences"title="Permalink to this headline">¶</a></h3>
<h3>25.5.3.2. IDLE-console differences<aclass="headerlink"href="#idle-console-differences"title="Permalink to this headline">¶</a></h3>
<p>As much as possible, the result of executing Python code with IDLE is the
<p>As much as possible, the result of executing Python code with IDLE is the
same as executing the same code in a console window. However, the different
same as executing the same code in a console window. However, the different
interface and operation occasionally affects results.</p>
interface and operation occasionally affects visible results. For instance,
<p>For instance, IDLE normally executes user code in a separate process from
<codeclass="docutils literal"><spanclass="pre">sys.modules</span></code> starts with more entries.</p>
the IDLE GUI itself. The IDLE versions of sys.stdin, .stdout, and .stderr in the
<p>IDLE also replaces <codeclass="docutils literal"><spanclass="pre">sys.stdin</span></code>, <codeclass="docutils literal"><spanclass="pre">sys.stdout</span></code>, and <codeclass="docutils literal"><spanclass="pre">sys.stderr</span></code> with
execution process get input from and send output to the GUI process,
objects that get input from and send output to the Shell window.
which keeps control of the keyboard and screen. This is normally transparent,
When this window has the focus, it controls the keyboard and screen.
but code that access these object will see different attribute values.
This is normally transparent, but functions that directly access the keyboard
Also, functions that directly access the keyboard and screen will not work.</p>
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 li ke <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>
<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.</p>