Fix misc doc typos (#108592)

This commit is contained in:
xzmeng 2023-08-29 08:14:21 +08:00 committed by GitHub
parent 5c68cba268
commit 88f1c5b454
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 9 deletions

View 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.

View 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

View 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:

View 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

View 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:

View 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)

View 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

View 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