X Tutup
Skip to content

Commit 241bda7

Browse files
cclaussambv
andauthored
[doc] Fix typos found using codespell (pythonGH-28744)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
1 parent 4c8d543 commit 241bda7

File tree

16 files changed

+22
-22
lines changed

16 files changed

+22
-22
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/c-api/init_config.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ There are two kinds of configuration:
2222
* The :ref:`Isolated Configuration <init-isolated-conf>` can be used to embed
2323
Python into an application. It isolates Python from the system. For example,
2424
environments variables are ignored, the LC_CTYPE locale is left unchanged and
25-
no signal handler is registred.
25+
no signal handler is registered.
2626

2727
The :c:func:`Py_RunMain` function can be used to write a customized Python
2828
program.
@@ -706,7 +706,7 @@ PyConfig
706706
* Otherwise, use the :term:`locale encoding`:
707707
``nl_langinfo(CODESET)`` result.
708708
709-
At Python statup, the encoding name is normalized to the Python codec
709+
At Python startup, the encoding name is normalized to the Python codec
710710
name. For example, ``"ANSI_X3.4-1968"`` is replaced with ``"ascii"``.
711711
712712
See also the :c:member:`~PyConfig.filesystem_errors` member.

Doc/faq/design.rst

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

719719

720720
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
@@ -1920,7 +1920,7 @@ and classes for traversing abstract syntax trees:
19201920
If source contains a null character ('\0'), :exc:`ValueError` is raised.
19211921

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

Doc/library/base64.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ The modern interface provides:
154154
This version does not allow the digit 0 (zero) to the letter O (oh) and digit
155155
1 (one) to either the letter I (eye) or letter L (el) mappings, all these
156156
characters are included in the Extended Hex Alphabet and are not
157-
interchangable.
157+
interchangeable.
158158

159159
.. versionadded:: 3.10
160160

Doc/library/dis.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ iterations of the loop.
725725
of the stack and sets the ``f_lasti`` attribute of the frame with that value.
726726
Then pops the next exception from the stack uses it to restore the current exception.
727727
Finally it re-raises the originally popped exception.
728-
Used in excpetion handler cleanup.
728+
Used in exception handler cleanup.
729729

730730
.. versionadded:: 3.11
731731

Doc/library/enum.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,8 @@ Data Types
651651

652652
---------------
653653

654-
Utilites and Decorators
655-
-----------------------
654+
Utilities and Decorators
655+
------------------------
656656

657657
.. class:: auto
658658

Doc/library/fileinput.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ You can control how files are opened by providing an opening hook via the
5050
*openhook* parameter to :func:`fileinput.input` or :class:`FileInput()`. The
5151
hook must be a function that takes two arguments, *filename* and *mode*, and
5252
returns an accordingly opened file-like object. If *encoding* and/or *errors*
53-
are specified, they will be passed to the hook as aditional keyword arguments.
53+
are specified, they will be passed to the hook as additional keyword arguments.
5454
This module provides a :func:`hook_compressed` to support compressed files.
5555

5656
The following function is the primary interface of this module:

Doc/library/importlib.metadata.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function::
255255
Package distributions
256256
---------------------
257257

258-
A convience method to resolve the distribution or
258+
A convenience method to resolve the distribution or
259259
distributions (in the case of a namespace package) for top-level
260260
Python packages or modules::
261261

Doc/library/test.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ The :mod:`test.support.threading_helper` module provides support for threading t
12491249
Context manager catching :class:`threading.Thread` exception using
12501250
:func:`threading.excepthook`.
12511251

1252-
Attributes set when an exception is catched:
1252+
Attributes set when an exception is caught:
12531253

12541254
* ``exc_type``
12551255
* ``exc_value``
@@ -1458,7 +1458,7 @@ The :mod:`test.support.os_helper` module provides support for os tests.
14581458
.. function:: unlink(filename)
14591459

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

14631463

14641464
:mod:`test.support.import_helper` --- Utilities for import tests

0 commit comments

Comments
 (0)
X Tutup