You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
keywords, builtin class and function names, names following <codeclass="docutils literal notranslate"><spanclass="pre">class</span></code> and
582
582
<codeclass="docutils literal notranslate"><spanclass="pre">def</span></code>, strings, and comments. For any text window, these are the cursor (when
583
583
present), found text (when possible), and selected text.</p>
584
+
<p>IDLE also highlights the <aclass="reference internal" href="../reference/lexical_analysis.html#soft-keywords"><spanclass="std std-ref">soft keywords</span></a><aclass="reference internal" href="../reference/compound_stmts.html#match"><codeclass="xref std std-keyword docutils literal notranslate"><spanclass="pre">match</span></code></a>,
585
+
<aclass="reference internal" href="../reference/compound_stmts.html#match"><codeclass="xref std std-keyword docutils literal notranslate"><spanclass="pre">case</span></code></a>, and <aclass="reference internal" href="../reference/compound_stmts.html#wildcard-patterns"><codeclass="xref std std-keyword docutils literal notranslate"><spanclass="pre">_</span></code></a> in
586
+
pattern-matching statements. However, this highlighting is not perfect and
587
+
will be incorrect in some rare cases, including some <codeclass="docutils literal notranslate"><spanclass="pre">_</span></code>-s in <codeclass="docutils literal notranslate"><spanclass="pre">case</span></code>
588
+
patterns.</p>
584
589
<p>Text coloring is done in the background, so uncolorized text is occasionally
585
590
visible. To change the color scheme, use the Configure IDLE dialog
586
591
Highlighting tab. The marking of debugger breakpoint lines in the editor and
@@ -685,7 +690,7 @@ <h3>Running user code<a class="headerlink" href="#running-user-code" title="Perm
685
690
directly with Python in a text-mode system console or terminal window.
686
691
However, the different interface and operation occasionally affect
687
692
visible results. For instance, <codeclass="docutils literal notranslate"><spanclass="pre">sys.modules</span></code> starts with more entries,
688
-
and <codeclass="docutils literal notranslate"><spanclass="pre">threading.activeCount()</span></code> returns 2 instead of 1.</p>
693
+
and <codeclass="docutils literal notranslate"><spanclass="pre">threading.active_count()</span></code> returns 2 instead of 1.</p>
689
694
<p>By default, IDLE runs user code in a separate OS process rather than in
690
695
the user interface process that runs the shell and editor. In the execution
691
696
process, it replaces <codeclass="docutils literal notranslate"><spanclass="pre">sys.stdin</span></code>, <codeclass="docutils literal notranslate"><spanclass="pre">sys.stdout</span></code>, and <codeclass="docutils literal notranslate"><spanclass="pre">sys.stderr</span></code>
0 commit comments