summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/ast.rst2
-rw-r--r--Doc/library/base64.rst2
-rw-r--r--Doc/library/fileinput.rst2
-rw-r--r--Doc/library/importlib.metadata.rst2
-rw-r--r--Doc/library/test.rst4
-rw-r--r--Doc/library/types.rst4
6 files changed, 8 insertions, 8 deletions
diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst
index d84c841..e29b5e8 100644
--- a/Doc/library/ast.rst
+++ b/Doc/library/ast.rst
@@ -1920,7 +1920,7 @@ and classes for traversing abstract syntax trees:
If source contains a null character ('\0'), :exc:`ValueError` is raised.
.. warning::
- Note that succesfully parsing souce code into an AST object doesn't
+ Note that successfully parsing source code into an AST object doesn't
guarantee that the source code provided is valid Python code that can
be executed as the compilation step can raise further :exc:`SyntaxError`
exceptions. For instance, the source ``return 42`` generates a valid
diff --git a/Doc/library/base64.rst b/Doc/library/base64.rst
index f91547b..35fb7b6 100644
--- a/Doc/library/base64.rst
+++ b/Doc/library/base64.rst
@@ -152,7 +152,7 @@ The modern interface provides:
This version does not allow the digit 0 (zero) to the letter O (oh) and digit
1 (one) to either the letter I (eye) or letter L (el) mappings, all these
characters are included in the Extended Hex Alphabet and are not
- interchangable.
+ interchangeable.
.. versionadded:: 3.10
diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst
index b840393..19cf7c6 100644
--- a/Doc/library/fileinput.rst
+++ b/Doc/library/fileinput.rst
@@ -50,7 +50,7 @@ You can control how files are opened by providing an opening hook via the
*openhook* parameter to :func:`fileinput.input` or :class:`FileInput()`. The
hook must be a function that takes two arguments, *filename* and *mode*, and
returns an accordingly opened file-like object. If *encoding* and/or *errors*
-are specified, they will be passed to the hook as aditional keyword arguments.
+are specified, they will be passed to the hook as additional keyword arguments.
This module provides a :func:`hook_compressed` to support compressed files.
The following function is the primary interface of this module:
diff --git a/Doc/library/importlib.metadata.rst b/Doc/library/importlib.metadata.rst
index c43457a..58c582d 100644
--- a/Doc/library/importlib.metadata.rst
+++ b/Doc/library/importlib.metadata.rst
@@ -255,7 +255,7 @@ function::
Package distributions
---------------------
-A convience method to resolve the distribution or
+A convenience method to resolve the distribution or
distributions (in the case of a namespace package) for top-level
Python packages or modules::
diff --git a/Doc/library/test.rst b/Doc/library/test.rst
index a6cc2be..a8dc354 100644
--- a/Doc/library/test.rst
+++ b/Doc/library/test.rst
@@ -1249,7 +1249,7 @@ The :mod:`test.support.threading_helper` module provides support for threading t
Context manager catching :class:`threading.Thread` exception using
:func:`threading.excepthook`.
- Attributes set when an exception is catched:
+ Attributes set when an exception is caught:
* ``exc_type``
* ``exc_value``
@@ -1458,7 +1458,7 @@ The :mod:`test.support.os_helper` module provides support for os tests.
.. function:: unlink(filename)
Call :func:`os.unlink` on *filename*. On Windows platforms, this is
- wrapped with a wait loop that checks for the existence fo the file.
+ wrapped with a wait loop that checks for the existence of the file.
:mod:`test.support.import_helper` --- Utilities for import tests
diff --git a/Doc/library/types.rst b/Doc/library/types.rst
index 88fe47a..2314b02 100644
--- a/Doc/library/types.rst
+++ b/Doc/library/types.rst
@@ -243,7 +243,7 @@ Standard names are defined for the following types:
.. note::
A future version of Python may stop setting this attribute by default.
- To guard against this potential change, preferrably read from the
+ To guard against this potential change, preferably read from the
:attr:`__spec__` attribute instead or use
``getattr(module, "__loader__", None)`` if you explicitly need to use
this attribute.
@@ -268,7 +268,7 @@ Standard names are defined for the following types:
.. note::
A future version of Python may stop setting this attribute by default.
- To guard against this potential change, preferrably read from the
+ To guard against this potential change, preferably read from the
:attr:`__spec__` attribute instead or use
``getattr(module, "__package__", None)`` if you explicitly need to use
this attribute.