Skip to content

Commit 3ae1236

Browse files
miss-islingtonscopfreakboy3742picnixz
authored
[3.13] Docs: spelling and grammar fixes (GH-122084) (#122106)
Docs: spelling and grammar fixes (GH-122084) Corrected some grammar and spelling issues in documentation. (cherry picked from commit bc264ea) Co-authored-by: Ville Skyttä <[email protected]> Co-authored-by: Russell Keith-Magee <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 587a8f8 commit 3ae1236

22 files changed

+30
-30
lines changed

Doc/c-api/init_config.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ PyConfig
509509
The :c:func:`PyConfig_Read` function only parses
510510
:c:member:`PyConfig.argv` arguments once: :c:member:`PyConfig.parse_argv`
511511
is set to ``2`` after arguments are parsed. Since Python arguments are
512-
strippped from :c:member:`PyConfig.argv`, parsing arguments twice would
512+
stripped from :c:member:`PyConfig.argv`, parsing arguments twice would
513513
parse the application options as Python options.
514514
515515
:ref:`Preinitialize Python <c-preinit>` if needed.
@@ -1041,7 +1041,7 @@ PyConfig
10411041
The :c:func:`PyConfig_Read` function only parses
10421042
:c:member:`PyConfig.argv` arguments once: :c:member:`PyConfig.parse_argv`
10431043
is set to ``2`` after arguments are parsed. Since Python arguments are
1044-
strippped from :c:member:`PyConfig.argv`, parsing arguments twice would
1044+
stripped from :c:member:`PyConfig.argv`, parsing arguments twice would
10451045
parse the application options as Python options.
10461046
10471047
Default: ``1`` in Python mode, ``0`` in isolated mode.

Doc/howto/free-threading-extensions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Python's memory management C API provides functions in three different
188188
:ref:`allocation domains <allocator-domains>`: "raw", "mem", and "object".
189189
For thread-safety, the free-threaded build requires that only Python objects
190190
are allocated using the object domain, and that all Python object are
191-
allocated using that domain. This differes from the prior Python versions,
191+
allocated using that domain. This differs from the prior Python versions,
192192
where this was only a best practice and not a hard requirement.
193193

194194
.. note::

Doc/howto/logging-cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4022,7 +4022,7 @@ As you can see, this output isn't ideal. That's because the underlying code
40224022
which writes to ``sys.stderr`` makes multiple writes, each of which results in a
40234023
separate logged line (for example, the last three lines above). To get around
40244024
this problem, you need to buffer things and only output log lines when newlines
4025-
are seen. Let's use a slghtly better implementation of ``LoggerWriter``:
4025+
are seen. Let's use a slightly better implementation of ``LoggerWriter``:
40264026

40274027
.. code-block:: python
40284028

Doc/library/ast.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ Statements
887887
.. class:: AnnAssign(target, annotation, value, simple)
888888

889889
An assignment with a type annotation. ``target`` is a single node and can
890-
be a :class:`Name`, a :class:`Attribute` or a :class:`Subscript`.
890+
be a :class:`Name`, an :class:`Attribute` or a :class:`Subscript`.
891891
``annotation`` is the annotation, such as a :class:`Constant` or :class:`Name`
892892
node. ``value`` is a single optional node.
893893

@@ -1979,7 +1979,7 @@ Function and class definitions
19791979
YieldFrom(value)
19801980

19811981
A ``yield`` or ``yield from`` expression. Because these are expressions, they
1982-
must be wrapped in a :class:`Expr` node if the value sent back is not used.
1982+
must be wrapped in an :class:`Expr` node if the value sent back is not used.
19831983

19841984
.. doctest::
19851985

Doc/library/asyncio-future.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,20 @@ Future Object
120120
a :exc:`CancelledError` exception.
121121

122122
If the Future's result isn't yet available, this method raises
123-
a :exc:`InvalidStateError` exception.
123+
an :exc:`InvalidStateError` exception.
124124

125125
.. method:: set_result(result)
126126

127127
Mark the Future as *done* and set its result.
128128

129-
Raises a :exc:`InvalidStateError` error if the Future is
129+
Raises an :exc:`InvalidStateError` error if the Future is
130130
already *done*.
131131

132132
.. method:: set_exception(exception)
133133

134134
Mark the Future as *done* and set an exception.
135135

136-
Raises a :exc:`InvalidStateError` error if the Future is
136+
Raises an :exc:`InvalidStateError` error if the Future is
137137
already *done*.
138138

139139
.. method:: done()

Doc/library/asyncio-task.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ Task Object
11701170
a :exc:`CancelledError` exception.
11711171

11721172
If the Task's result isn't yet available, this method raises
1173-
a :exc:`InvalidStateError` exception.
1173+
an :exc:`InvalidStateError` exception.
11741174

11751175
.. method:: exception()
11761176

Doc/library/contextlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Functions and classes provided:
322322

323323
.. versionchanged:: 3.12
324324
``suppress`` now supports suppressing exceptions raised as
325-
part of an :exc:`BaseExceptionGroup`.
325+
part of a :exc:`BaseExceptionGroup`.
326326

327327
.. function:: redirect_stdout(new_target)
328328

Doc/library/ctypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Functions are accessed as attributes of dll objects::
107107

108108
Note that win32 system dlls like ``kernel32`` and ``user32`` often export ANSI
109109
as well as UNICODE versions of a function. The UNICODE version is exported with
110-
an ``W`` appended to the name, while the ANSI version is exported with an ``A``
110+
a ``W`` appended to the name, while the ANSI version is exported with an ``A``
111111
appended to the name. The win32 ``GetModuleHandle`` function, which returns a
112112
*module handle* for a given module name, has the following C prototype, and a
113113
macro is used to expose one of them as ``GetModuleHandle`` depending on whether

Doc/library/fractions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ another rational number, or from a string.
8787

8888
.. versionchanged:: 3.9
8989
The :func:`math.gcd` function is now used to normalize the *numerator*
90-
and *denominator*. :func:`math.gcd` always return a :class:`int` type.
90+
and *denominator*. :func:`math.gcd` always returns an :class:`int` type.
9191
Previously, the GCD type depended on *numerator* and *denominator*.
9292

9393
.. versionchanged:: 3.11

Doc/library/http.server.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ provides three different variants:
378378

379379
If the request was mapped to a file, it is opened. Any :exc:`OSError`
380380
exception in opening the requested file is mapped to a ``404``,
381-
``'File not found'`` error. If there was a ``'If-Modified-Since'``
381+
``'File not found'`` error. If there was an ``'If-Modified-Since'``
382382
header in the request, and the file was not modified after this time,
383383
a ``304``, ``'Not Modified'`` response is sent. Otherwise, the content
384384
type is guessed by calling the :meth:`guess_type` method, which in turn

0 commit comments

Comments
 (0)