]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Fix typos (#125728)
authorember91 <31469580+ember91@users.noreply.github.com>
Mon, 21 Oct 2024 08:44:18 +0000 (10:44 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2024 08:44:18 +0000 (10:44 +0200)
Doc/c-api/init.rst
Doc/c-api/long.rst
Doc/c-api/monitoring.rst
Doc/library/concurrent.futures.rst
Doc/library/importlib.metadata.rst
Doc/using/windows.rst

index ffc5b4223ba589ce25bdd453f92579fdc63e28c4..412a41ce02cfd7c6b8c0e903f5660edd2ce93591 100644 (file)
@@ -2418,7 +2418,7 @@ Example usage::
 
 In the above example, :c:macro:`Py_SETREF` calls :c:macro:`Py_DECREF`, which
 can call arbitrary code through an object's deallocation function.  The critical
-section API avoids potentital deadlocks due to reentrancy and lock ordering
+section API avoids potential deadlocks due to reentrancy and lock ordering
 by allowing the runtime to temporarily suspend the critical section if the
 code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
 
index 6d3463fe25a61404943d05ab744c81e596c288b0..9ff3e5265004a10d0144d8ab57ab751aac0a700f 100644 (file)
@@ -511,7 +511,7 @@ distinguished from a number.  Use :c:func:`PyErr_Occurred` to disambiguate.
       free(bignum);
 
    *flags* is either ``-1`` (``Py_ASNATIVEBYTES_DEFAULTS``) to select defaults
-   that behave most like a C cast, or a combintation of the other flags in
+   that behave most like a C cast, or a combination of the other flags in
    the table below.
    Note that ``-1`` cannot be combined with other flags.
 
index 285ddb2889a67fbd923a5d4a831071adcd62a929..51d866cfd47469f3f126afcf8a1b2f99a39e55a9 100644 (file)
@@ -147,7 +147,7 @@ would typically correspond to a python function.
 
    The ``version`` argument is a pointer to a value which should be allocated
    by the user together with ``state_array`` and initialized to 0,
-   and then set only by :c:func:`!PyMonitoring_EnterScope` itelf. It allows this
+   and then set only by :c:func:`!PyMonitoring_EnterScope` itself. It allows this
    function to determine whether event states have changed since the previous call,
    and to return quickly if they have not.
 
index 45a73705f10e92ab29c3ce28ead1c516ea139ff3..48e027152a98517b76c0c3a440c4de0434d9f8ed 100644 (file)
@@ -208,7 +208,7 @@ ThreadPoolExecutor Example
            'http://www.cnn.com/',
            'http://europe.wsj.com/',
            'http://www.bbc.co.uk/',
-           'http://nonexistant-subdomain.python.org/']
+           'http://nonexistent-subdomain.python.org/']
 
    # Retrieve a single page and report the URL and contents
    def load_url(url, timeout):
index 85d5a2d684d6eb0fd430a88c930a13265130692c..ddfc5c06d825c0a2807b84c788a6c0bb290f4110 100644 (file)
@@ -559,7 +559,7 @@ path.
 
 ``DatabaseDistribution``, then, would look something like::
 
-    class DatabaseDistribution(importlib.metadata.Distributon):
+    class DatabaseDistribution(importlib.metadata.Distribution):
         def __init__(self, record):
             self.record = record
 
index 20d872d7639219455d2377ad3f728ead66cb5b5e..daaf8822af1161df3d1d3206786e7a06f72bd621 100644 (file)
@@ -838,8 +838,8 @@ The short form of the argument (``-3``) only ever selects from core Python
 releases, and not other distributions. However, the longer form (``-V:3``) will
 select from any.
 
-The Company is matched on the full string, case-insenitive. The Tag is matched
-oneither the full string, or a prefix, provided the next character is a dot or a
+The Company is matched on the full string, case-insensitive. The Tag is matched
+on either the full string, or a prefix, provided the next character is a dot or a
 hyphen. This allows ``-V:3.1`` to match ``3.1-32``, but not ``3.10``. Tags are
 sorted using numerical ordering (``3.10`` is newer than ``3.1``), but are
 compared using text (``-V:3.01`` does not match ``3.1``).