Skip to content

Commit 6fb48c6

Browse files
[3.13] Fix idlelib typos (GH-125484) (#125487)
Fix idlelib typos (GH-125484) Propagate fixes in Doc/library/idle.rst to help.html. Change 'interruptable' to 'interruptible' in run.py. The latter was reported by ember91 in PR 125473. (cherry picked from commit 3fea1d0) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent d54dbd6 commit 6fb48c6

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

Lib/idlelib/help.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

8-
<title>IDLE &#8212; Python 3.13.0a2 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<title>IDLE &#8212; Python 3.14.0a0 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
99

1010
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
1111
<link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?digest=b37c26da2f7529d09fe70b41c4b2133fe4931a90" />
@@ -18,14 +18,15 @@
1818
<script src="../_static/sidebar.js"></script>
1919

2020
<link rel="search" type="application/opensearchdescription+xml"
21-
title="Search within Python 3.13.0a2 documentation"
21+
title="Search within Python 3.14.0a0 documentation"
2222
href="../_static/opensearch.xml"/>
2323
<link rel="author" title="About these documents" href="../about.html" />
2424
<link rel="index" title="Index" href="../genindex.html" />
2525
<link rel="search" title="Search" href="../search.html" />
2626
<link rel="copyright" title="Copyright" href="../copyright.html" />
2727
<link rel="next" title="Development Tools" href="development.html" />
2828
<link rel="prev" title="tkinter.ttk — Tk themed widgets" href="tkinter.ttk.html" />
29+
2930
<link rel="canonical" href="https://docs.python.org/3/library/idle.html" />
3031

3132

@@ -45,6 +46,8 @@
4546
<script type="text/javascript" src="../_static/menu.js"></script>
4647
<script type="text/javascript" src="../_static/search-focus.js"></script>
4748
<script type="text/javascript" src="../_static/themetoggle.js"></script>
49+
<script type="text/javascript" src="../_static/rtd_switcher.js"></script>
50+
<meta name="readthedocs-addons-api-version" content="1">
4851

4952
</head>
5053
<body>
@@ -184,7 +187,7 @@ <h3>Navigation</h3>
184187

185188
</li>
186189
<li id="cpython-language-and-version">
187-
<a href="../index.html">3.13.0a2 Documentation</a> &#187;
190+
<a href="../index.html">3.14.0a0 Documentation</a> &#187;
188191
</li>
189192

190193
<li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &#187;</li>
@@ -554,16 +557,16 @@ <h3>Key bindings<a class="headerlink" href="#key-bindings" title="Permalink to t
554557
delete characters. Deletion does not puts text on the clipboard,
555558
but IDLE has an undo list. Wherever this doc discusses keys,
556559
‘C’ refers to the <kbd class="kbd docutils literal notranslate">Control</kbd> key on Windows and
557-
Unix and the <kbd class="kbd docutils literal notranslate">Command</kbd> key on macOS. (And all such dicussions
560+
Unix and the <kbd class="kbd docutils literal notranslate">Command</kbd> key on macOS. (And all such discussions
558561
assume that the keys have not been re-bound to something else.)</p>
559562
<ul class="simple">
560563
<li><p>Arrow keys move the cursor one character or line.</p></li>
561564
<li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">LeftArrow</kbd></kbd> and <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">RightArrow</kbd></kbd> moves left or right one word.</p></li>
562565
<li><p><kbd class="kbd docutils literal notranslate">Home</kbd> and <kbd class="kbd docutils literal notranslate">End</kbd> go to the beginning or end of the line.</p></li>
563566
<li><p><kbd class="kbd docutils literal notranslate">Page Up</kbd> and <kbd class="kbd docutils literal notranslate">Page Down</kbd> go up or down one screen.</p></li>
564567
<li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">Home</kbd></kbd> and <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">End</kbd></kbd> go to beginning or end of the file.</p></li>
565-
<li><p><kbd class="kbd docutils literal notranslate">Backspace</kbd> and <kbd class="kbd docutils literal notranslate">Del</kbd> (or <cite>C-d</cite>) delete the previous or
566-
next character.</p></li>
568+
<li><p><kbd class="kbd docutils literal notranslate">Backspace</kbd> and <kbd class="kbd docutils literal notranslate">Del</kbd> (or <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">d</kbd></kbd>) delete the previous
569+
or next character.</p></li>
567570
<li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">Backspace</kbd></kbd> and <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">Del</kbd></kbd> delete one word left or right.</p></li>
568571
<li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">k</kbd></kbd> deletes (‘kills’) everything to the right.</p></li>
569572
</ul>
@@ -694,7 +697,7 @@ <h3>Shell window<a class="headerlink" href="#shell-window" title="Permalink to t
694697
<p>The editing features described in previous subsections work when entering
695698
code interactively. IDLE’s Shell window also responds to the following:</p>
696699
<ul class="simple">
697-
<li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">c</kbd></kbd> attemps to interrupt statement execution (but may fail).</p></li>
700+
<li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">c</kbd></kbd> attempts to interrupt statement execution (but may fail).</p></li>
698701
<li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">d</kbd></kbd> closes Shell if typed at a <code class="docutils literal notranslate"><span class="pre">&gt;&gt;&gt;</span></code> prompt.</p></li>
699702
<li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">Alt</kbd>-<kbd class="kbd docutils literal notranslate">p</kbd></kbd> and <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">Alt</kbd>-<kbd class="kbd docutils literal notranslate">n</kbd></kbd> (<kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">p</kbd></kbd> and <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">n</kbd></kbd> on macOS)
700703
retrieve to the current prompt the previous or next previously
@@ -1136,7 +1139,7 @@ <h3>Navigation</h3>
11361139

11371140
</li>
11381141
<li id="cpython-language-and-version">
1139-
<a href="../index.html">3.13.0a2 Documentation</a> &#187;
1142+
<a href="../index.html">3.14.0a0 Documentation</a> &#187;
11401143
</li>
11411144

11421145
<li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &#187;</li>
@@ -1180,7 +1183,7 @@ <h3>Navigation</h3>
11801183
<br />
11811184
<br />
11821185

1183-
Last updated on Jan 17, 2024 (06:57 UTC).
1186+
Last updated on Oct 14, 2024 (20:27 UTC).
11841187
<a href="/bugs.html">Found a bug</a>?
11851188
<br />
11861189

Lib/idlelib/run.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ def handle_tk_events(tcl=tcl):
108108

109109
# Thread shared globals: Establish a queue between a subthread (which handles
110110
# the socket) and the main thread (which runs user code), plus global
111-
# completion, exit and interruptable (the main thread) flags:
111+
# completion, exit and interruptible (the main thread) flags:
112112

113113
exit_now = False
114114
quitting = False
115-
interruptable = False
115+
interruptible = False
116116

117117
def main(del_exitfunc=False):
118118
"""Start the Python execution server in a subprocess
@@ -582,14 +582,14 @@ def __init__(self, rpchandler):
582582
self.locals = {}
583583

584584
def runcode(self, code):
585-
global interruptable
585+
global interruptible
586586
try:
587587
self.user_exc_info = None
588-
interruptable = True
588+
interruptible = True
589589
try:
590590
exec(code, self.locals)
591591
finally:
592-
interruptable = False
592+
interruptible = False
593593
except SystemExit as e:
594594
if e.args: # SystemExit called with an argument.
595595
ob = e.args[0]
@@ -615,7 +615,7 @@ def runcode(self, code):
615615
flush_stdout()
616616

617617
def interrupt_the_server(self):
618-
if interruptable:
618+
if interruptible:
619619
thread.interrupt_main()
620620

621621
def start_the_debugger(self, gui_adap_oid):

0 commit comments

Comments
 (0)