8000 docs: fix a few typos identified by codespell · python/cpython@31fff04 · GitHub
[go: up one dir, main page]

Skip to content

Commit 31fff04

Browse files
committed
docs: fix a few typos identified by codespell
1 parent f0ed186 commit 31fff04

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

Doc/library/curses.rst

Lines 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

Lines 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

Lines 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/textwrap.rst

Lines 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/tutorial/venv.rst

Lines 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/using/ios.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ modules in your app, some additional steps will be required:
303303
* You need to ensure that any folders containing third-party binaries are
304304
either associated with the app target, or copied in as part of step 8. Step 8
305305
should also purge any binaries that are not appropriate for the platform a
306-
specific build is targetting (i.e., delete any device binaries if you're
307-
building app app targeting the simulator).
306+
specific build is targeting (i.e., delete any device binaries if you're
307+
building an app targeting the simulator).
308308

309309
* Any folders that contain third-party binaries must be processed into
310310
framework form by step 9. The invocation of ``install_dylib`` that processes

Doc/whatsnew/3.12.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ Deprecated
12511251
:exc:`DeprecationWarning` when it can detect being called from a
68FA
12521252
multithreaded process. There has always been a fundamental incompatibility
12531253
with the POSIX platform when doing so. Even if such code *appeared* to work.
1254-
We added the warning to to raise awareness as issues encounted by code doing
1254+
We added the warning to raise awareness as issues encountered by code doing
12551255
this are becoming more frequent. See the :func:`os.fork` documentation for
12561256
more details along with `this discussion on fork being incompatible with threads
12571257
<https://discuss.python.org/t/33555>`_ for *why* we're now surfacing this

0 commit comments

Comments
 (0)
0