Skip to content

Commit de29e75

Browse files
committed
Fix typos in comments
1 parent c3ed775 commit de29e75

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

Include/refcount.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static inline Py_ALWAYS_INLINE void Py_DECREF(PyObject *op)
401401
* There are cases where it's safe to use the naive code, but they're brittle.
402402
* For example, if `op` points to a Python integer, you know that destroying
403403
* one of those can't cause problems -- but in part that relies on that
404-
* Python integers aren't currently weakly referencable. Best practice is
404+
* Python integers aren't currently weakly referenceable. Best practice is
405405
* to use Py_CLEAR() even if you can't think of a reason for why you need to.
406406
*
407407
* gh-98724: Use a temporary variable to only evaluate the macro argument once,

Lib/_pyio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class IOBase(metaclass=abc.ABCMeta):
315315
316316
This class provides dummy implementations for many methods that
317317
derived classes can override selectively; the default implementations
318-
represent a file that cannot be read, written or seeked.
318+
represent a file that cannot be read, written or sought.
319319
320320
Even though IOBase does not declare read or write because
321321
their signatures will vary, implementations and clients should

Lib/_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def pattern(self, format):
268268
if day_of_month_in_format and not year_in_format:
269269
import warnings
270270
warnings.warn("""\
271-
Parsing dates involving a day of month without a year specified is ambiguious
271+
Parsing dates involving a day of month without a year specified is ambiguous
272272
and fails to parse leap day. The default behavior will change in Python 3.15
273273
to either always raise an exception or to use a different default year (TBD).
274274
To avoid trouble, add a specific year to the input & format.

Lib/hashlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
- hexdigest(): Like digest() except the digest is returned as a string
3434
of double length, containing only hexadecimal digits.
3535
- copy(): Return a copy (clone) of the hash object. This can be used to
36-
efficiently compute the digests of datas that share a common
36+
efficiently compute the digests of data that share a common
3737
initial substring.
3838
3939
For example, to obtain the digest of the byte string 'Nobody inspects the

Lib/idlelib/Icons/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ As of 2022, this was known true for 1 'major' Linux distribution.
3737
(Same would be true for any non-Aqua macOS with 8.5, but now none?)
3838
Can be deleted when we require 8.6 or it is known always used.
3939

40-
Future: Derivitives of Python logo should be submitted for approval.
40+
Future: Derivatives of Python logo should be submitted for approval.
4141
PSF Trademark Working Group / Committee [email protected]
4242
https://www.python.org/community/logos/ # Original files
4343
https://www.python.org/psf/trademarks-faq/

Lib/idlelib/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def GetCoreKeys(self, keySetName=None):
600600
"""
601601
# TODO: = dict(sorted([(v-event, keys), ...]))?
602602
keyBindings={
603-
# vitual-event: list of key events.
603+
# virtual-event: list of key events.
604604
'<<copy>>': ['<Control-c>', '<Control-C>'],
605605
'<<cut>>': ['<Control-x>', '<Control-X>'],
606606
'<<paste>>': ['<Control-v>', '<Control-V>'],

Lib/idlelib/editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ def RemoveKeybindings(self):
914914
def ApplyKeybindings(self):
915915
"""Apply the virtual, configurable keybindings.
916916
917-
Alse update hotkeys to current keyset.
917+
Also update hotkeys to current keyset.
918918
"""
919919
# Called from configdialog.activate_config_changes.
920920
self.mainmenu.default_keydefs = keydefs = idleConf.GetCurrentKeySet()

Lib/idlelib/extend.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ should probably be refined in the future.)
5252

5353
Extensions are not required to define menu entries for all the events they
5454
implement. (They are also not required to create keybindings, but in that
55-
case there must be empty bindings in cofig-extensions.def)
55+
case there must be empty bindings in config-extensions.def)
5656

5757
Here is a partial example from zzdummy.py:
5858

Lib/idlelib/help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ <h3>Shell window<a class="headerlink" href="#shell-window" title="Permalink to t
694694
<p>The editing features described in previous subsections work when entering
695695
code interactively. IDLE’s Shell window also responds to the following:</p>
696696
<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>
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> attempts to interrupt statement execution (but may fail).</p></li>
698698
<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>
699699
<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)
700700
retrieve to the current prompt the previous or next previously

Lib/importlib/resources/_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def _(path):
182182
@contextlib.contextmanager
183183
def _temp_path(dir: tempfile.TemporaryDirectory):
184184
"""
185-
Wrap tempfile.TemporyDirectory to return a pathlib object.
185+
Wrap tempfile.TemporaryDirectory to return a pathlib object.
186186
"""
187187
with dir as result:
188188
yield pathlib.Path(result)

0 commit comments

Comments
 (0)