Skip to content

Commit ae9bbd1

Browse files
[3.12] Fix misc doc typos (GH-108592) (#108594)
Fix misc doc typos (GH-108592) (cherry picked from commit 88f1c5b) Co-authored-by: xzmeng <[email protected]>
1 parent 7c7b2bf commit ae9bbd1

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

Doc/c-api/stable.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ way; see :ref:`stable-abi-platform` below).
1818
So, code compiled for Python 3.10.0 will work on 3.10.8 and vice versa,
1919
but will need to be compiled separately for 3.9.x and 3.10.x.
2020

21-
There are two tiers of C API with different stability exepectations:
21+
There are two tiers of C API with different stability expectations:
2222

2323
- :ref:`Unstable API <unstable-c-api>`, may change in minor versions without
2424
a deprecation period. It is marked by the ``PyUnstable`` prefix in names.

Doc/c-api/typeobj.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
17281728
treated as read-only.
17291729

17301730
Some types may not store their dictionary in this slot.
1731-
Use :c:func:`PyType_GetDict` to retreive the dictionary for an arbitrary
1731+
Use :c:func:`PyType_GetDict` to retrieve the dictionary for an arbitrary
17321732
type.
17331733

17341734
.. versionchanged:: 3.12

Doc/library/idle.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ Search and Replace
479479

480480
Any selection becomes a search target. However, only selections within
481481
a line work because searches are only performed within lines with the
482-
terminal newline removed. If ``[x] Regular expresion`` is checked, the
482+
terminal newline removed. If ``[x] Regular expression`` is checked, the
483483
target is interpreted according to the Python re module.
484484

485485
.. _completions:

Doc/library/importlib.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ an :term:`importer`.
12701270

12711271
You can get the same effect as this function by implementing the
12721272
basic interface of multi-phase init (:pep:`489`) and lying about
1273-
support for mulitple interpreters (or per-interpreter GIL).
1273+
support for multiple interpreters (or per-interpreter GIL).
12741274

12751275
.. warning::
12761276
Using this function to disable the check can lead to

Doc/library/sqlite3.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ Cursor objects
15471547

15481548
:raises ProgrammingError:
15491549
If *sql* contains more than one SQL statement,
1550-
or is not a DML statment.
1550+
or is not a DML statement.
15511551

15521552
Example:
15531553

Doc/library/statistics.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ parameter, ``h``, representing the variance of the kernel function.
10861086
import math
10871087

10881088
def kde_normal(sample, h):
1089-
"Create a continous probability density function from a sample."
1089+
"Create a continuous probability density function from a sample."
10901090
# Smooth the sample with a normal distribution of variance h.
10911091
kernel_h = NormalDist(0.0, math.sqrt(h)).pdf
10921092
n = len(sample)

Doc/library/tkinter.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Understanding How Tkinter Wraps Tcl/Tk
352352

353353
When your application uses Tkinter's classes and methods, internally Tkinter
354354
is assembling strings representing Tcl/Tk commands, and executing those
355-
commands in the Tcl interpreter attached to your applicaton's :class:`Tk`
355+
commands in the Tcl interpreter attached to your application's :class:`Tk`
356356
instance.
357357

358358
Whether it's trying to navigate reference documentation, trying to find

Doc/using/configure.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Install Options
221221
Install architecture-independent files in PREFIX. On Unix, it
222222
defaults to :file:`/usr/local`.
223223

224-
This value can be retrived at runtime using :data:`sys.prefix`.
224+
This value can be retrieved at runtime using :data:`sys.prefix`.
225225

226226
As an example, one can use ``--prefix="$HOME/.local/"`` to install
227227
a Python in its home directory.
@@ -230,7 +230,7 @@ Install Options
230230

231231
Install architecture-dependent files in EPREFIX, defaults to :option:`--prefix`.
232232

233-
This value can be retrived at runtime using :data:`sys.exec_prefix`.
233+
This value can be retrieved at runtime using :data:`sys.exec_prefix`.
234234

235235
.. cmdoption:: --disable-test-modules
236236

0 commit comments

Comments
 (0)