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.
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
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:
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
:raises ProgrammingError:
If *sql* contains more than one SQL statement,
- or is not a DML statment.
+ or is not a DML statement.
Example:
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)
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
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.
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