Skip to content

Commit edef03a

Browse files
authored
[3.9] [doc] Fix typos found using codespell (GH-28744) (GH-28759)
1 parent d747f5e commit edef03a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Doc/c-api/call.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Object Calling API
185185
Various functions are available for calling a Python object.
186186
Each converts its arguments to a convention supported by the called object –
187187
either *tp_call* or vectorcall.
188-
In order to do as litle conversion as possible, pick one that best fits
188+
In order to do as little conversion as possible, pick one that best fits
189189
the format of data you have available.
190190
191191
The following table summarizes the available functions;

Doc/faq/design.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ Why don't generators support the with statement?
715715
For technical reasons, a generator used directly as a context manager
716716
would not work correctly. When, as is most common, a generator is used as
717717
an iterator run to completion, no closing is needed. When it is, wrap
718-
it as "contextlib.closing(generator)" in the 'with' statment.
718+
it as "contextlib.closing(generator)" in the 'with' statement.
719719

720720

721721
Why are colons required for the if/while/def/class statements?

Doc/library/ast.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ and classes for traversing abstract syntax trees:
15521552
If source contains a null character ('\0'), :exc:`ValueError` is raised.
15531553

15541554
.. warning::
1555-
Note that succesfully parsing souce code into an AST object doesn't
1555+
Note that successfully parsing source code into an AST object doesn't
15561556
guarantee that the source code provided is valid Python code that can
15571557
be executed as the compilation step can raise further :exc:`SyntaxError`
15581558
exceptions. For instance, the source ``return 42`` generates a valid

Doc/library/test.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ The :mod:`test.support` module defines the following functions:
457457
.. function:: unlink(filename)
458458

459459
Call :func:`os.unlink` on *filename*. On Windows platforms, this is
460-
wrapped with a wait loop that checks for the existence fo the file.
460+
wrapped with a wait loop that checks for the existence of the file.
461461

462462

463463
.. function:: rmdir(filename)
@@ -1145,7 +1145,7 @@ The :mod:`test.support` module defines the following functions:
11451145
Context manager catching :class:`threading.Thread` exception using
11461146
:func:`threading.excepthook`.
11471147

1148-
Attributes set when an exception is catched:
1148+
Attributes set when an exception is caught:
11491149

11501150
* ``exc_type``
11511151
* ``exc_value``

Doc/library/types.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Standard names are defined for the following types:
229229

230230
.. note::
231231
A future version of Python may stop setting this attribute by default.
232-
To guard against this potential change, preferrably read from the
232+
To guard against this potential change, preferably read from the
233233
:attr:`__spec__` attribute instead or use
234234
``getattr(module, "__loader__", None)`` if you explicitly need to use
235235
this attribute.
@@ -254,7 +254,7 @@ Standard names are defined for the following types:
254254

255255
.. note::
256256
A future version of Python may stop setting this attribute by default.
257-
To guard against this potential change, preferrably read from the
257+
To guard against this potential change, preferably read from the
258258
:attr:`__spec__` attribute instead or use
259259
``getattr(module, "__package__", None)`` if you explicitly need to use
260260
this attribute.

0 commit comments

Comments
 (0)