]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix misc doc typos (#108592)
authorxzmeng <aumo@foxmail.com>
Tue, 29 Aug 2023 00:14:21 +0000 (08:14 +0800)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 00:14:21 +0000 (00:14 +0000)
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 acaf0eced35b3ff4b9adc22fd8e6657fca52464b..f417c68fd1efd4c28c24d389e8fe8fe38a9b4195 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 0d7abae6de26946636b6e03d7082f4463dcefee8..5137e173e23740536f772a631953b6643c778aff 100644 (file)
@@ -1566,7 +1566,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 368b2a17cef99719cf5c686b7cd22203a94412ab..a8a79012565321ebc99e57aab29cd0ba5a7661f9 100644 (file)
@@ -1091,7 +1091,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 9f6c3e3e862c422622d6fd1b656eaa06abf3ef29..76cccc4e9dc9bcb4fe78b4b9d90f3ed71d1adf5d 100644 (file)
@@ -348,7 +348,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 50f60ee54fed140ca73688a481fecd652dd87261..6279b0efbf932103bf2306a306a107c82c5fc403 100644 (file)
@@ -230,7 +230,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.
@@ -239,7 +239,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