Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f86c76

Browse filesBrowse files
hugovknedbat
andauthored
[3.12] docs: fix a few typos identified by codespell (GH-119516) (#119571)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
1 parent d4e382b commit 7f86c76
Copy full SHA for 7f86c76

17 files changed

+21
-21
lines changed

‎Doc/c-api/weakref.rst

Copy file name to clipboardExpand all lines: Doc/c-api/weakref.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ as much as it can.
3535
callable object that receives notification when *ob* is garbage collected; it
3636
should accept a single parameter, which will be the weak reference object
3737
itself. *callback* may also be ``None`` or ``NULL``. If *ob* is not a
38-
weakly referencable object, or if *callback* is not callable, ``None``, or
38+
weakly referenceable object, or if *callback* is not callable, ``None``, or
3939
``NULL``, this will return ``NULL`` and raise :exc:`TypeError`.
4040
4141
@@ -47,7 +47,7 @@ as much as it can.
4747
be a callable object that receives notification when *ob* is garbage
4848
collected; it should accept a single parameter, which will be the weak
4949
reference object itself. *callback* may also be ``None`` or ``NULL``. If *ob*
50-
is not a weakly referencable object, or if *callback* is not callable,
50+
is not a weakly referenceable object, or if *callback* is not callable,
5151
``None``, or ``NULL``, this will return ``NULL`` and raise :exc:`TypeError`.
5252
5353

‎Doc/extending/extending.rst

Copy file name to clipboardExpand all lines: Doc/extending/extending.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ It is important to call :c:func:`free` at the right time. If a block's address
857857
is forgotten but :c:func:`free` is not called for it, the memory it occupies
858858
cannot be reused until the program terminates. This is called a :dfn:`memory
859859
leak`. On the other hand, if a program calls :c:func:`free` for a block and then
860-
continues to use the block, it creates a conflict with re-use of the block
860+
continues to use the block, it creates a conflict with reuse of the block
861861
through another :c:func:`malloc` call. This is called :dfn:`using freed memory`.
862862
It has the same bad consequences as referencing uninitialized data --- core
863863
dumps, wrong results, mysterious crashes.

‎Doc/extending/newtypes.rst

Copy file name to clipboardExpand all lines: Doc/extending/newtypes.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ performance-critical objects (such as numbers).
545545
.. seealso::
546546
Documentation for the :mod:`weakref` module.
547547

548-
For an object to be weakly referencable, the extension type must set the
548+
For an object to be weakly referenceable, the extension type must set the
549549
``Py_TPFLAGS_MANAGED_WEAKREF`` bit of the :c:member:`~PyTypeObject.tp_flags`
550550
field. The legacy :c:member:`~PyTypeObject.tp_weaklistoffset` field should
551551
be left as zero.

‎Doc/howto/mro.rst

Copy file name to clipboardExpand all lines: Doc/howto/mro.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ In this case the MRO is GFEF and the local precedence ordering is
426426
preserved.
427427

428428
As a general rule, hierarchies such as the previous one should be
429-
avoided, since it is unclear if F should override E or viceversa.
429+
avoided, since it is unclear if F should override E or vice-versa.
430430
Python 2.3 solves the ambiguity by raising an exception in the creation
431431
of class G, effectively stopping the programmer from generating
432432
ambiguous hierarchies. The reason for that is that the C3 algorithm

‎Doc/library/curses.rst

Copy file name to clipboardExpand all lines: Doc/library/curses.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ the following methods and attributes:
922922

923923
.. method:: window.getbegyx()
924924

925-
Return a tuple ``(y, x)`` of co-ordinates of upper-left corner.
925+
Return a tuple ``(y, x)`` of coordinates of upper-left corner.
926926

927927

928928
.. method:: window.getbkgd()

‎Doc/library/numbers.rst

Copy file name to clipboardExpand all lines: Doc/library/numbers.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ The numeric tower
8484
``~``.
8585

8686

87-
Notes for type implementors
87+
Notes for type implementers
8888
---------------------------
8989

90-
Implementors should be careful to make equal numbers equal and hash
90+
Implementers should be careful to make equal numbers equal and hash
9191
them to the same values. This may be subtle if there are two different
9292
extensions of the real numbers. For example, :class:`fractions.Fraction`
9393
implements :func:`hash` as follows::

‎Doc/library/optparse.rst

Copy file name to clipboardExpand all lines: Doc/library/optparse.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1738,7 +1738,7 @@ seen, but blow up if it comes after ``-b`` in the command-line. ::
17381738
Callback example 3: check option order (generalized)
17391739
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17401740

1741-
If you want to re-use this callback for several similar options (set a flag, but
1741+
If you want to reuse this callback for several similar options (set a flag, but
17421742
blow up if ``-b`` has already been seen), it needs a bit of work: the error
17431743
message and the flag that it sets must be generalized. ::
17441744

‎Doc/library/ssl.rst

Copy file name to clipboardExpand all lines: Doc/library/ssl.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,15 +759,15 @@ Constants
759759

760760
.. data:: OP_SINGLE_DH_USE
761761

762-
Prevents re-use of the same DH key for distinct SSL sessions. This
762+
Prevents reuse of the same DH key for distinct SSL sessions. This
763763
improves forward secrecy but requires more computational resources.
764764
This option only applies to server sockets.
765765

766766
.. versionadded:: 3.3
767767

768768
.. data:: OP_SINGLE_ECDH_USE
769769

770-
Prevents re-use of the same ECDH key for distinct SSL sessions. This
770+
Prevents reuse of the same ECDH key for distinct SSL sessions. This
771771
improves forward secrecy but requires more computational resources.
772772
This option only applies to server sockets.
773773

‎Doc/library/textwrap.rst

Copy file name to clipboardExpand all lines: Doc/library/textwrap.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ hyphenated words; only then will long words be broken if necessary, unless
154154
wrapper = TextWrapper()
155155
wrapper.initial_indent = "* "
156156

157-
You can re-use the same :class:`TextWrapper` object many times, and you can
157+
You can reuse the same :class:`TextWrapper` object many times, and you can
158158
change any of its options through direct assignment to instance attributes
159159
between uses.
160160

‎Doc/library/turtle.rst

Copy file name to clipboardExpand all lines: Doc/library/turtle.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ off-screen)::
111111
home()
112112

113113
The home position is at the center of the turtle's screen. If you ever need to
114-
know them, get the turtle's x-y co-ordinates with::
114+
know them, get the turtle's x-y coordinates with::
115115

116116
pos()
117117

‎Doc/tutorial/venv.rst

Copy file name to clipboardExpand all lines: Doc/tutorial/venv.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Creating Virtual Environments
3838
The module used to create and manage virtual environments is called
3939
:mod:`venv`. :mod:`venv` will install the Python version from which
4040
the command was run (as reported by the :option:`--version` option).
41-
For instance, excuting the command with ``python3.12`` will install
41+
For instance, executing the command with ``python3.12`` will install
4242
version 3.12.
4343

4444
To create a virtual environment, decide upon a directory where you want to

‎Doc/whatsnew/2.2.rst

Copy file name to clipboardExpand all lines: Doc/whatsnew/2.2.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ code, none of the changes described here will affect you very much.
10621062
simply been changed to use the new C-level interface. (Contributed by Fred L.
10631063
Drake, Jr.)
10641064

1065-
* Another low-level API, primarily of interest to implementors of Python
1065+
* Another low-level API, primarily of interest to implementers of Python
10661066
debuggers and development tools, was added. :c:func:`PyInterpreterState_Head` and
10671067
:c:func:`PyInterpreterState_Next` let a caller walk through all the existing
10681068
interpreter objects; :c:func:`PyInterpreterState_ThreadHead` and

‎Doc/whatsnew/2.7.rst

Copy file name to clipboardExpand all lines: Doc/whatsnew/2.7.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1738,7 +1738,7 @@ New module: importlib
17381738

17391739
Python 3.1 includes the :mod:`importlib` package, a re-implementation
17401740
of the logic underlying Python's :keyword:`import` statement.
1741-
:mod:`importlib` is useful for implementors of Python interpreters and
1741+
:mod:`importlib` is useful for implementers of Python interpreters and
17421742
to users who wish to write new importers that can participate in the
17431743
import process. Python 2.7 doesn't contain the complete
17441744
:mod:`importlib` package, but instead has a tiny subset that contains

‎Doc/whatsnew/3.12.rst

Copy file name to clipboardExpand all lines: Doc/whatsnew/3.12.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ Deprecated
12621262
:exc:`DeprecationWarning` when it can detect being called from a
12631263
multithreaded process. There has always been a fundamental incompatibility
12641264
with the POSIX platform when doing so. Even if such code *appeared* to work.
1265-
We added the warning to to raise awareness as issues encounted by code doing
1265+
We added the warning to raise awareness as issues encountered by code doing
12661266
this are becoming more frequent. See the :func:`os.fork` documentation for
12671267
more details along with `this discussion on fork being incompatible with threads
12681268
<https://discuss.python.org/t/33555>`_ for *why* we're now surfacing this

‎Doc/whatsnew/3.4.rst

Copy file name to clipboardExpand all lines: Doc/whatsnew/3.4.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2413,7 +2413,7 @@ Changes in the Python API
24132413
formal public interface the naming has been made consistent (:issue:`18532`).
24142414

24152415
* Because :mod:`unittest.TestSuite` now drops references to tests after they
2416-
are run, test harnesses that re-use a :class:`~unittest.TestSuite` to re-run
2416+
are run, test harnesses that reuse a :class:`~unittest.TestSuite` to re-run
24172417
a set of tests may fail. Test suites should not be re-used in this fashion
24182418
since it means state is retained between test runs, breaking the test
24192419
isolation that :mod:`unittest` is designed to provide. However, if the lack

‎Doc/whatsnew/3.6.rst

Copy file name to clipboardExpand all lines: Doc/whatsnew/3.6.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,10 +2336,10 @@ Changes in the Python API
23362336
* With the introduction of :exc:`ModuleNotFoundError`, import system consumers
23372337
may start expecting import system replacements to raise that more specific
23382338
exception when appropriate, rather than the less-specific :exc:`ImportError`.
2339-
To provide future compatibility with such consumers, implementors of
2339+
To provide future compatibility with such consumers, implementers of
23402340
alternative import systems that completely replace :func:`__import__` will
23412341
need to update their implementations to raise the new subclass when a module
2342-
can't be found at all. Implementors of compliant plugins to the default
2342+
can't be found at all. Implementers of compliant plugins to the default
23432343
import system shouldn't need to make any changes, as the default import
23442344
system will raise the new subclass when appropriate.
23452345

‎Doc/whatsnew/3.9.rst

Copy file name to clipboardExpand all lines: Doc/whatsnew/3.9.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ Deprecated
891891

892892
* Deprecated the ``split()`` method of :class:`!_tkinter.TkappType` in
893893
favour of the ``splitlist()`` method which has more consistent and
894-
predicable behavior.
894+
predictable behavior.
895895
(Contributed by Serhiy Storchaka in :issue:`38371`.)
896896

897897
* The explicit passing of coroutine objects to :func:`asyncio.wait` has been

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.