Skip to content

Commit b0f906a

Browse files
committed
Fix typos in documentation files
.rst, .md, .txt and Misc/HISTORY
1 parent 37e533a commit b0f906a

30 files changed

+39
-39
lines changed

Doc/c-api/init.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2418,7 +2418,7 @@ Example usage::
24182418
24192419
In the above example, :c:macro:`Py_SETREF` calls :c:macro:`Py_DECREF`, which
24202420
can call arbitrary code through an object's deallocation function. The critical
2421-
section API avoids potentital deadlocks due to reentrancy and lock ordering
2421+
section API avoids potential deadlocks due to reentrancy and lock ordering
24222422
by allowing the runtime to temporarily suspend the critical section if the
24232423
code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
24242424

Doc/c-api/long.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
511511
free(bignum);
512512
513513
*flags* is either ``-1`` (``Py_ASNATIVEBYTES_DEFAULTS``) to select defaults
514-
that behave most like a C cast, or a combintation of the other flags in
514+
that behave most like a C cast, or a combination of the other flags in
515515
the table below.
516516
Note that ``-1`` cannot be combined with other flags.
517517

Doc/c-api/monitoring.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ would typically correspond to a python function.
147147
148148
The ``version`` argument is a pointer to a value which should be allocated
149149
by the user together with ``state_array`` and initialized to 0,
150-
and then set only by :c:func:`!PyMonitoring_EnterScope` itelf. It allows this
150+
and then set only by :c:func:`!PyMonitoring_EnterScope` itself. It allows this
151151
function to determine whether event states have changed since the previous call,
152152
and to return quickly if they have not.
153153

Doc/library/concurrent.futures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ ThreadPoolExecutor Example
206206
'http://www.cnn.com/',
207207
'http://europe.wsj.com/',
208208
'http://www.bbc.co.uk/',
209-
'http://nonexistant-subdomain.python.org/']
209+
'http://nonexistent-subdomain.python.org/']
210210

211211
# Retrieve a single page and report the URL and contents
212212
def load_url(url, timeout):

Doc/library/importlib.metadata.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ path.
559559

560560
``DatabaseDistribution``, then, would look something like::
561561

562-
class DatabaseDistribution(importlib.metadata.Distributon):
562+
class DatabaseDistribution(importlib.metadata.Distribution):
563563
def __init__(self, record):
564564
self.record = record
565565

Doc/using/windows.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,8 @@ The short form of the argument (``-3``) only ever selects from core Python
838838
releases, and not other distributions. However, the longer form (``-V:3``) will
839839
select from any.
840840

841-
The Company is matched on the full string, case-insenitive. The Tag is matched
842-
oneither the full string, or a prefix, provided the next character is a dot or a
841+
The Company is matched on the full string, case-insensitive. The Tag is matched
842+
on either the full string, or a prefix, provided the next character is a dot or a
843843
hyphen. This allows ``-V:3.1`` to match ``3.1-32``, but not ``3.10``. Tags are
844844
sorted using numerical ordering (``3.10`` is newer than ``3.1``), but are
845845
compared using text (``-V:3.01`` does not match ``3.1``).

InternalDocs/adaptive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ and `Tadaptive` is the mean time to execute the specialized and adaptive forms.
5454

5555
`Ti` is the time to execute the `i`th instruction in the family and `Ni` is
5656
the number of times that instruction is executed.
57-
`Tmiss` is the time to process a miss, including de-optimzation
57+
`Tmiss` is the time to process a miss, including de-optimization
5858
and the time to execute the base instruction.
5959

6060
The ideal situation is where misses are rare and the specialized

Lib/test/test_doctest/test_doctest2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ This test also has some (random) encoded (utf-8) unicode text:
1010

1111
ЉЊЈЁЂ
1212

13-
This doesn't cause a problem in the tect surrounding the examples, but
13+
This doesn't cause a problem in the text surrounding the examples, but
1414
we include it here (in this test text file) to make sure. :)

Misc/HISTORY

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Core and Builtins
168168
- Issue #24806: Prevent builtin types that are not allowed to be subclassed from
169169
being subclassed through multiple inheritance.
170170

171-
- Issue #24848: Fixed a number of bugs in UTF-7 decoding of misformed data.
171+
- Issue #24848: Fixed a number of bugs in UTF-7 decoding of malformed data.
172172

173173
- Issue #25280: Import trace messages emitted in verbose (-v) mode are no
174174
longer formatted twice.
@@ -1714,7 +1714,7 @@ IDLE
17141714
move version to end.
17151715

17161716
- Issue #14105: Idle debugger breakpoints no longer disappear
1717-
when inseting or deleting lines.
1717+
when inserting or deleting lines.
17181718

17191719
- Issue #17172: Turtledemo can now be run from Idle.
17201720
Currently, the entry is on the Help menu, but it may move to Run.
@@ -11919,7 +11919,7 @@ Core and Builtins
1191911919
with a non-empty format string. This is an effort to future-proof user
1192011920
code. If a derived class does not currently implement __format__ but later
1192111921
adds its own __format__, it would most likely break user code that had
11922-
supplied a format string. This will be changed to a DeprecationWaring in
11922+
supplied a format string. This will be changed to a DeprecationWarning in
1192311923
Python 3.3 and it will be an error in Python 3.4.
1192411924

1192511925
- Issue #9828: Destroy the GIL in Py_Finalize(), so that it gets properly
@@ -14964,7 +14964,7 @@ Library
1496414964
whitespace.
1496514965

1496614966
- Issue #5940: distutils.command.build_clib.check_library_list was not doing
14967-
the right type checkings anymore.
14967+
the right type checks anymore.
1496814968

1496914969
- Issue #4875: On win32, ctypes.util.find_library does no longer
1497014970
return directories.
@@ -16950,7 +16950,7 @@ Core and Builtins
1695016950

1695116951
- Patch #1953: Added ``sys._compact_freelists()`` and the C API
1695216952
functions ``PyInt_CompactFreeList`` and ``PyFloat_CompactFreeList``
16953-
to compact the internal free lists of pre-allocted ints and floats.
16953+
to compact the internal free lists of pre-allocated ints and floats.
1695416954

1695516955
- Bug #1983: Fixed return type of fork(), fork1() and forkpty() calls.
1695616956
Python expected the return type int but the fork familie returns
@@ -32457,7 +32457,7 @@ you can have a single shared library that defines multiple modules.
3245732457
(SunOS / SVR4 style shared libraries only.)
3245832458

3245932459
Jim Fulton's ``abstract object interface'' has been incorporated into
32460-
the run-time API. For more detailes, read the files
32460+
the run-time API. For more details, read the files
3246132461
"Include/abstract.h" and "Objects/abstract.c".
3246232462

3246332463
The Macintosh version is much more robust now.
@@ -33372,7 +33372,7 @@ manner.
3337233372
when deallocated.
3337333373

3337433374
* There is a compile-time option to cache a string's hash function,
33375-
but this appeared to have a negligeable effect, and as it costs 4
33375+
but this appeared to have a negligible effect, and as it costs 4
3337633376
bytes per string it is disabled by default.
3337733377

3337833378

Misc/NEWS.d/3.10.0a2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ Fixed tests using IsolatedAsyncioTestCase from hanging on BaseExceptions.
445445
.. section: Library
446446
447447
Fixed a bug that was causing :func:`ctypes.util.find_library` to return
448-
``None`` when triying to locate a library in an environment when gcc>=9 is
448+
``None`` when trying to locate a library in an environment when gcc>=9 is
449449
available and ``ldconfig`` is not. Patch by Pablo Galindo
450450

451451
..

0 commit comments

Comments
 (0)