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 d25954d

Browse filesBrowse files
authored
docs: fix a few typos identified by codespell (#119516)
1 parent e418fc3 commit d25954d
Copy full SHA for d25954d

File tree

Expand file treeCollapse file tree

18 files changed

+23
-23
lines changed
Filter options
Expand file treeCollapse file tree

18 files changed

+23
-23
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
@@ -868,7 +868,7 @@ It is important to call :c:func:`free` at the right time. If a block's address
868868
is forgotten but :c:func:`free` is not called for it, the memory it occupies
869869
cannot be reused until the program terminates. This is called a :dfn:`memory
870870
leak`. On the other hand, if a program calls :c:func:`free` for a block and then
871-
continues to use the block, it creates a conflict with re-use of the block
871+
continues to use the block, it creates a conflict with reuse of the block
872872
through another :c:func:`malloc` call. This is called :dfn:`using freed memory`.
873873
It has the same bad consequences as referencing uninitialized data --- core
874874
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
@@ -924,7 +924,7 @@ the following methods and attributes:
924924

925925
.. method:: window.getbegyx()
926926

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

929929

930930
.. 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
@@ -1739,7 +1739,7 @@ seen, but blow up if it comes after ``-b`` in the command-line. ::
17391739
Callback example 3: check option order (generalized)
17401740
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17411741

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

‎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
@@ -781,15 +781,15 @@ Constants
781781

782782
.. data:: OP_SINGLE_DH_USE
783783

784-
Prevents re-use of the same DH key for distinct SSL sessions. This
784+
Prevents reuse of the same DH key for distinct SSL sessions. This
785785
improves forward secrecy but requires more computational resources.
786786
This option only applies to server sockets.
787787

788788
.. versionadded:: 3.3
789789

790790
.. data:: OP_SINGLE_ECDH_USE
791791

792-
Prevents re-use of the same ECDH key for distinct SSL sessions. This
792+
Prevents reuse of the same ECDH key for distinct SSL sessions. This
793793
improves forward secrecy but requires more computational resources.
794794
This option only applies to server sockets.
795795

‎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
@@ -120,7 +120,7 @@ off-screen)::
120120
home()
121121

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

125125
pos()
126126

0 commit comments

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