]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Fix misc doc typos (GH-108592) (#108594)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 29 Aug 2023 10:38:03 +0000 (03:38 -0700)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 10:38:03 +0000 (12:38 +0200)
Fix misc doc typos (GH-108592)
(cherry picked from commit 88f1c5b454c34efc167a94b5e2d67ec042834e5b)

Co-authored-by: xzmeng <aumo@foxmail.com>
Doc/c-api/stable.rst
Doc/c-api/typeobj.rst
Doc/library/idle.rst
Doc/library/importlib.rst
Doc/library/sqlite3.rst
Doc/library/statistics.rst
Doc/library/tkinter.rst
Doc/using/configure.rst

index c66b296d304adc231a7ce9e5ad2a09491ef8da30..63a100a6f26f24c8d2b3626f4eaaa7f0e5bd0249 100644 (file)
@@ -18,7 +18,7 @@ way; see :ref:`stable-abi-platform` below).
 So, code compiled for Python 3.10.0 will work on 3.10.8 and vice versa,
 but will need to be compiled separately for 3.9.x and 3.10.x.
 
-There are two tiers of C API with different stability exepectations:
+There are two tiers of C API with different stability expectations:
 
 - :ref:`Unstable API <unstable-c-api>`, may change in minor versions without
   a deprecation period. It is marked by the ``PyUnstable`` prefix in names.
index cd037b4de882e16a99a55169f38b2056da2457f8..0988090194a5fe974b954d522ba546801cd1d009 100644 (file)
@@ -1728,7 +1728,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
    treated as read-only.
 
    Some types may not store their dictionary in this slot.
-   Use :c:func:`PyType_GetDict` to retreive the dictionary for an arbitrary
+   Use :c:func:`PyType_GetDict` to retrieve the dictionary for an arbitrary
    type.
 
    .. versionchanged:: 3.12
index 3058bcead661f3e5f3eebfe1cf2e72e36e93857f..3211da50dc745cd4bf57d95c6724f2cde7239186 100644 (file)
@@ -479,7 +479,7 @@ Search and Replace
 
 Any selection becomes a search target.  However, only selections within
 a line work because searches are only performed within lines with the
-terminal newline removed.  If ``[x] Regular expresion`` is checked, the
+terminal newline removed.  If ``[x] Regular expression`` is checked, the
 target is interpreted according to the Python re module.
 
 .. _completions:
index 1d378dbbdace5deb74416c62106dd0f61cf59b3e..d8cc7079a1d8129b92da69108738c1e769eb3601 100644 (file)
@@ -1270,7 +1270,7 @@ an :term:`importer`.
 
    You can get the same effect as this function by implementing the
    basic interface of multi-phase init (:pep:`489`) and lying about
-   support for mulitple interpreters (or per-interpreter GIL).
+   support for multiple interpreters (or per-interpreter GIL).
 
    .. warning::
       Using this function to disable the check can lead to
index 93ca46811f1c0a8e7690817461be8fe2a1106bfb..d5afaa1c4c9557cf7b51aa49656f55d644a4e5a8 100644 (file)
@@ -1547,7 +1547,7 @@ Cursor objects
 
       :raises ProgrammingError:
          If *sql* contains more than one SQL statement,
-         or is not a DML statment.
+         or is not a DML statement.
 
       Example:
 
index 483ebea67f0c6df3e49a039bfdf2fd5a59dc63a7..6e6ca7cef3391f343f9e957cc890b875aee8f671 100644 (file)
@@ -1086,7 +1086,7 @@ parameter, ``h``, representing the variance of the kernel function.
    import math
 
    def kde_normal(sample, h):
-       "Create a continous probability density function from a sample."
+       "Create a continuous probability density function from a sample."
        # Smooth the sample with a normal distribution of variance h.
        kernel_h = NormalDist(0.0, math.sqrt(h)).pdf
        n = len(sample)
index 2aa344227038723f6923d1ee4e8e25fd431d4847..246abf374b02191c588498adf4e9f8a5d38cbf12 100644 (file)
@@ -352,7 +352,7 @@ Understanding How Tkinter Wraps Tcl/Tk
 
 When your application uses Tkinter's classes and methods, internally Tkinter
 is assembling strings representing Tcl/Tk commands, and executing those
-commands in the Tcl interpreter attached to your applicaton's :class:`Tk`
+commands in the Tcl interpreter attached to your application's :class:`Tk`
 instance.
 
 Whether it's trying to navigate reference documentation, trying to find
index f4adea82a87c38be006e4e7925163c80e1588e23..791d3ad7f4071ae674ce810910be679a613036d0 100644 (file)
@@ -221,7 +221,7 @@ Install Options
    Install architecture-independent files in PREFIX. On Unix, it
    defaults to :file:`/usr/local`.
 
-   This value can be retrived at runtime using :data:`sys.prefix`.
+   This value can be retrieved at runtime using :data:`sys.prefix`.
 
    As an example, one can use ``--prefix="$HOME/.local/"`` to install
    a Python in its home directory.
@@ -230,7 +230,7 @@ Install Options
 
    Install architecture-dependent files in EPREFIX, defaults to :option:`--prefix`.
 
-   This value can be retrived at runtime using :data:`sys.exec_prefix`.
+   This value can be retrieved at runtime using :data:`sys.exec_prefix`.
 
 .. cmdoption:: --disable-test-modules