]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] Fix grammatical typos in documentation (GH-154181) (#154190)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Jul 2026 06:35:14 +0000 (08:35 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 06:35:14 +0000 (08:35 +0200)
Fix grammatical typos in documentation (GH-154181)
(cherry picked from commit 40f7fbf4a53d2f2cb0414a22f891d6e7e288280c)

Co-authored-by: ilya <110783299+bontail@users.noreply.github.com>
Doc/library/ast.rst
Doc/library/compression.zstd.rst
Doc/library/sys.rst

index 4809fdb42bf3d7795f3b958c45991e3315a5046c..5bdfe7c182de3ac74b6fef80ece6f143d3c868c5 100644 (file)
@@ -1366,7 +1366,7 @@ Control flow
 
    ``try`` blocks which are followed by ``except*`` clauses. The attributes are the
    same as for :class:`Try` but the :class:`ExceptHandler` nodes in ``handlers``
-   are interpreted as ``except*`` blocks rather then ``except``.
+   are interpreted as ``except*`` blocks rather than ``except``.
 
    .. doctest::
 
index 6d99e36e1e5bb6502d46c8f93a4d84d0f610b24b..6618ccf7d559e783f89bb23d1ad0808d66127847 100644 (file)
@@ -503,7 +503,7 @@ Advanced parameter control
    The :meth:`~.bounds` method can be used on any attribute to get the valid
    values for that parameter.
 
-   Parameters are optional; any omitted parameter will have it's value selected
+   Parameters are optional; any omitted parameter will have its value selected
    automatically.
 
    Example getting the lower and upper bound of :attr:`~.compression_level`::
@@ -732,7 +732,7 @@ Advanced parameter control
 
    An :class:`~enum.IntEnum` containing the advanced decompression parameter
    keys that can be used when decompressing data. Parameters are optional; any
-   omitted parameter will have it's value selected automatically.
+   omitted parameter will have its value selected automatically.
 
    The :meth:`~.bounds` method can be used on any attribute to get the valid
    values for that parameter.
index 212bd93d4a7cc1a2983e7fdb635c2fd22f7db8bc..a22aac914cedfebcdae048708c61131b189aeae4 100644 (file)
@@ -2160,7 +2160,7 @@ always available. Unless explicitly noted otherwise, all variables are read-only
    returned by the :func:`open` function.  Their parameters are chosen as
    follows:
 
-   * The encoding and error handling are is initialized from
+   * The encoding and error handling are initialized from
      :c:member:`PyConfig.stdio_encoding` and :c:member:`PyConfig.stdio_errors`.
 
      On Windows, UTF-8 is used for the console device.  Non-character