mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
[3.12] Fix misc doc typos (GH-108592) (#108594)
Fix misc doc typos (GH-108592)
(cherry picked from commit 88f1c5b454
)
Co-authored-by: xzmeng <aumo@foxmail.com>
This commit is contained in:
parent
7c7b2bfb3f
commit
ae9bbd16d8
8 changed files with 9 additions and 9 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue