pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/39d87b54715197ca9dcb6902bb43461c0ed701a2

Fix typos mostly in comments, docs and test names (GH-15209) · python/cpython@39d87b5 · GitHub
Skip to content

Commit 39d87b5

Browse files
minho42terryjreedy
authored andcommitted
Fix typos mostly in comments, docs and test names (GH-15209)
1 parent 15119bc commit 39d87b5

46 files changed

Lines changed: 60 additions & 60 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Doc/c-api/init_config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ Path Configuration
876876
If at least one "output field" is not set, Python computes the path
877877
configuration to fill unset fields. If
878878
:c:member:`~PyConfig.module_search_paths_set` is equal to 0,
879-
:c:member:`~PyConfig.module_search_paths` is overriden and
879+
:c:member:`~PyConfig.module_search_paths` is overridden and
880880
:c:member:`~PyConfig.module_search_paths_set` is set to 1.
881881
882882
It is possible to completely ignore the function computing the default

Doc/library/importlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,8 +1379,8 @@ an :term:`importer`.
13791379
bytecode file. An empty string represents no optimization, so
13801380
``/foo/bar/baz.py`` with an *optimization* of ``''`` will result in a
13811381
bytecode path of ``/foo/bar/__pycache__/baz.cpython-32.pyc``. ``None`` causes
1382-
the interpter's optimization level to be used. Any other value's string
1383-
representation being used, so ``/foo/bar/baz.py`` with an *optimization* of
1382+
the interpreter's optimization level to be used. Any other value's string
1383+
representation is used, so ``/foo/bar/baz.py`` with an *optimization* of
13841384
``2`` will lead to the bytecode path of
13851385
``/foo/bar/__pycache__/baz.cpython-32.opt-2.pyc``. The string representation
13861386
of *optimization* can only be alphanumeric, else :exc:`ValueError` is raised.

Include/pyhash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ PyAPI_FUNC(PyHash_FuncDef*) PyHash_GetFuncDef(void);
119119
* configure script.
120120
*
121121
* - FNV is available on all platforms and architectures.
122-
* - SIPHASH24 only works on plaforms that don't require aligned memory for integers.
122+
* - SIPHASH24 only works on platforms that don't require aligned memory for integers.
123123
* - With EXTERNAL embedders can provide an alternative implementation with::
124124
*
125125
* PyHash_FuncDef PyHash_Func = {...};

Lib/asyncio/streams.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def connect(host=None, port=None, *,
7171
ssl_handshake_timeout=None,
7272
happy_eyeballs_delay=None, interleave=None):
7373
# Design note:
74-
# Don't use decorator approach but exilicit non-async
74+
# Don't use decorator approach but explicit non-async
7575
# function to fail fast and explicitly
7676
# if passed arguments don't match the function signature
7777
return _ContextManagerHelper(_connect(host, port, limit,
@@ -442,7 +442,7 @@ def connect_unix(path=None, *,
442442
ssl_handshake_timeout=None):
443443
"""Similar to `connect()` but works with UNIX Domain Sockets."""
444444
# Design note:
445-
# Don't use decorator approach but exilicit non-async
445+
# Don't use decorator approach but explicit non-async
446446
# function to fail fast and explicitly
447447
# if passed arguments don't match the function signature
448448
return _ContextManagerHelper(_connect_unix(path,

Lib/bdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def canonic(self, filename):
3838
"""Return canonical form of filename.
3939
4040
For real filenames, the canonical form is a case-normalized (on
41-
case insenstive filesystems) absolute path. 'Filenames' with
41+
case insensitive filesystems) absolute path. 'Filenames' with
4242
angle brackets, such as "<stdin>", generated in interactive
4343
mode, are returned unchanged.
4444
"""

Lib/multiprocessing/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def __repr__(self):
238238
if self._kwargs:
239239
x += ', kwargs=' + str(self._kwargs)
240240
if self._key[0] is not None:
241-
x += ', exitprority=' + str(self._key[0])
241+
x += ', exitpriority=' + str(self._key[0])
242242
return x + '>'
243243

244244

Lib/test/lock_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def _check_notify(self, cond):
467467
# of the workers.
468468
# Secondly, this test assumes that condition variables are not subject
469469
# to spurious wakeups. The absence of spurious wakeups is an implementation
470-
# detail of Condition Cariables in current CPython, but in general, not
470+
# detail of Condition Variables in current CPython, but in general, not
471471
# a guaranteed property of condition variables as a programming
472472
# construct. In particular, it is possible that this can no longer
473473
# be conveniently guaranteed should their implementation ever change.

Lib/test/test_cmd_line_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def test_dash_m_errors(self):
474474
('os.path', br'loader.*cannot handle'),
475475
('importlib', br'No module named.*'
476476
br'is a package and cannot be directly executed'),
477-
('importlib.nonexistant', br'No module named'),
477+
('importlib.nonexistent', br'No module named'),
478478
('.unittest', br'Relative module names not supported'),
479479
)
480480
for name, regex in tests:

Lib/test/test_collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ def test_order_preservation(self):
19271927
'r', 'c', 'd', ' ', 's', 's', 'i', 'i', 'm', 'm', 'l'])
19281928

19291929
# Math operations order first by the order encountered in the left
1930-
# operand and then by the order encounted in the right operand.
1930+
# operand and then by the order encountered in the right operand.
19311931
ps = 'aaabbcdddeefggghhijjjkkl'
19321932
qs = 'abbcccdeefffhkkllllmmnno'
19331933
order = {letter: i for i, letter in enumerate(dict.fromkeys(ps + qs))}

Lib/test/test_descr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3025,7 +3025,7 @@ def test_str_subclass_as_dict_key(self):
30253025
# Testing a str subclass used as dict key ..
30263026

30273027
class cistr(str):
3028-
"""Sublcass of str that computes __eq__ case-insensitively.
3028+
"""Subclass of str that computes __eq__ case-insensitively.
30293029
30303030
Also computes a hash code of the string in canonical form.
30313031
"""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy