mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Fix typos in docs and comments (#109619) Co-authored-by: Heinz-Alexander Fuetterer <35225576+afuetterer@users.noreply.github.com>
This commit is contained in:
parent
196738fc86
commit
25bf0564c4
9 changed files with 9 additions and 9 deletions
|
|
@ -786,7 +786,7 @@ Exception Objects
|
|||
|
||||
Implement part of the interpreter's implementation of :keyword:`!except*`.
|
||||
*orig* is the original exception that was caught, and *excs* is the list of
|
||||
the exceptions that need to be raised. This list contains the the unhandled
|
||||
the exceptions that need to be raised. This list contains the unhandled
|
||||
part of *orig*, if any, as well as the exceptions that were raised from the
|
||||
:keyword:`!except*` clauses (so they have a different traceback from *orig*) and
|
||||
those that were reraised (and have the same traceback as *orig*).
|
||||
|
|
|
|||
|
|
@ -1291,7 +1291,7 @@ These can be used as types in annotations. They all support subscription using
|
|||
completely disables typechecking for a function or class.
|
||||
|
||||
The responsibility of how to interpret the metadata
|
||||
lies with the the tool or library encountering an
|
||||
lies with the tool or library encountering an
|
||||
``Annotated`` annotation. A tool or library encountering an ``Annotated`` type
|
||||
can scan through the metadata elements to determine if they are of interest
|
||||
(e.g., using :func:`isinstance`).
|
||||
|
|
|
|||
|
|
@ -354,7 +354,7 @@ create an interpreter with its own GIL::
|
|||
if (PyStatus_Exception(status)) {
|
||||
return -1;
|
||||
}
|
||||
/* The new interpeter is now active in the current thread. */
|
||||
/* The new interpreter is now active in the current thread. */
|
||||
|
||||
For further examples how to use the C-API for sub-interpreters with a
|
||||
per-interpreter GIL, see :source:`Modules/_xxsubinterpretersmodule.c`.
|
||||
|
|
|
|||
|
|
@ -921,7 +921,7 @@ and improves their substitutability for lists.
|
|||
Docstrings produced by :func:`~collections.namedtuple` can now be updated::
|
||||
|
||||
Point = namedtuple('Point', ['x', 'y'])
|
||||
Point.__doc__ += ': Cartesian coodinate'
|
||||
Point.__doc__ += ': Cartesian coordinate'
|
||||
Point.x.__doc__ = 'abscissa'
|
||||
Point.y.__doc__ = 'ordinate'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue