Skip to content

Commit 34ce192

Browse files
Docs: Fix duplicate word typos (GH-135958)
1 parent 58a42de commit 34ce192

File tree

13 files changed

+15
-15
lines changed

13 files changed

+15
-15
lines changed

Doc/c-api/init.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
12501250
.. c:function:: void PyInterpreterState_Clear(PyInterpreterState *interp)
12511251
12521252
Reset all information in an interpreter state object. There must be
1253-
an :term:`attached thread state` for the the interpreter.
1253+
an :term:`attached thread state` for the interpreter.
12541254
12551255
.. audit-event:: cpython.PyInterpreterState_Clear "" c.PyInterpreterState_Clear
12561256

Doc/c-api/long.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
439439
All *n_bytes* of the buffer are written: large buffers are padded with
440440
zeroes.
441441
442-
If the returned value is greater than than *n_bytes*, the value was
442+
If the returned value is greater than *n_bytes*, the value was
443443
truncated: as many of the lowest bits of the value as could fit are written,
444444
and the higher bits are ignored. This matches the typical behavior
445445
of a C-style downcast.

Doc/extending/newtypes_tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ be an instance of a subclass.
277277
The explicit cast to ``CustomObject *`` above is needed because we defined
278278
``Custom_dealloc`` to take a ``PyObject *`` argument, as the ``tp_dealloc``
279279
function pointer expects to receive a ``PyObject *`` argument.
280-
By assigning to the the ``tp_dealloc`` slot of a type, we declare
280+
By assigning to the ``tp_dealloc`` slot of a type, we declare
281281
that it can only be called with instances of our ``CustomObject``
282282
class, so the cast to ``(CustomObject *)`` is safe.
283283
This is object-oriented polymorphism, in C!

Doc/library/ctypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2965,7 +2965,7 @@ fields, or any other data types containing pointer type fields.
29652965
.. attribute:: is_anonymous
29662966

29672967
True if this field is anonymous, that is, it contains nested sub-fields
2968-
that should be be merged into a containing structure or union.
2968+
that should be merged into a containing structure or union.
29692969

29702970

29712971
.. _ctypes-arrays-pointers:

Doc/library/email.header.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ The :mod:`email.header` module also provides the following convenient functions.
206206

207207
.. note::
208208

209-
This function exists for for backwards compatibility only. For
209+
This function exists for backwards compatibility only. For
210210
new code, we recommend using :class:`email.headerregistry.HeaderRegistry`.
211211

212212

@@ -225,5 +225,5 @@ The :mod:`email.header` module also provides the following convenient functions.
225225

226226
.. note::
227227

228-
This function exists for for backwards compatibility only, and is
228+
This function exists for backwards compatibility only, and is
229229
not recommended for use in new code.

Doc/library/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ their subgroups based on the types of the contained exceptions.
10481048
subclasses that need a different constructor signature need to
10491049
override that rather than :meth:`~object.__init__`. For example, the following
10501050
defines an exception group subclass which accepts an exit_code and
1051-
and constructs the group's message from it. ::
1051+
constructs the group's message from it. ::
10521052

10531053
class Errors(ExceptionGroup):
10541054
def __new__(cls, errors, exit_code):

Doc/library/faulthandler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ An error will be printed instead of the stack.
9090

9191
Additionally, some compilers do not support :term:`CPython's <CPython>`
9292
implementation of C stack dumps. As a result, a different error may be printed
93-
instead of the stack, even if the the operating system supports dumping stacks.
93+
instead of the stack, even if the operating system supports dumping stacks.
9494

9595
.. note::
9696

Doc/library/mmap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
269269

270270
Resizing a map created with *access* of :const:`ACCESS_READ` or
271271
:const:`ACCESS_COPY`, will raise a :exc:`TypeError` exception.
272-
Resizing a map created with with *trackfd* set to ``False``,
272+
Resizing a map created with *trackfd* set to ``False``,
273273
will raise a :exc:`ValueError` exception.
274274

275275
**On Windows**: Resizing the map will raise an :exc:`OSError` if there are other

Doc/library/pathlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1985,7 +1985,7 @@ The :mod:`pathlib.types` module provides types for static type checking.
19851985

19861986
If *follow_symlinks* is ``False``, return ``True`` only if the path
19871987
is a file (without following symlinks); return ``False`` if the path
1988-
is a directory or other other non-file, or if it doesn't exist.
1988+
is a directory or other non-file, or if it doesn't exist.
19891989

19901990
.. method:: is_symlink()
19911991

Doc/library/socketserver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ objects that simplify communication by providing the standard file interface)::
543543

544544
The difference is that the ``readline()`` call in the second handler will call
545545
``recv()`` multiple times until it encounters a newline character, while the
546-
the first handler had to use a ``recv()`` loop to accumulate data until a
546+
first handler had to use a ``recv()`` loop to accumulate data until a
547547
newline itself. If it had just used a single ``recv()`` without the loop it
548548
would just have returned what has been received so far from the client.
549549
TCP is stream based: data arrives in the order it was sent, but there no

Doc/library/threading.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ since it is impossible to detect the termination of alien threads.
621621
an error to :meth:`~Thread.join` a thread before it has been started
622622
and attempts to do so raise the same exception.
623623

624-
If an attempt is made to join a running daemonic thread in in late stages
624+
If an attempt is made to join a running daemonic thread in late stages
625625
of :term:`Python finalization <interpreter shutdown>` :meth:`!join`
626626
raises a :exc:`PythonFinalizationError`.
627627

Doc/using/cmdline.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ Miscellaneous options
653653
.. versionadded:: 3.13
654654

655655
* :samp:`-X thread_inherit_context={0,1}` causes :class:`~threading.Thread`
656-
to, by default, use a copy of context of of the caller of
656+
to, by default, use a copy of context of the caller of
657657
``Thread.start()`` when starting. Otherwise, threads will start
658658
with an empty context. If unset, the value of this option defaults
659659
to ``1`` on free-threaded builds and to ``0`` otherwise. See also
@@ -1284,7 +1284,7 @@ conflict.
12841284
.. envvar:: PYTHON_THREAD_INHERIT_CONTEXT
12851285

12861286
If this variable is set to ``1`` then :class:`~threading.Thread` will,
1287-
by default, use a copy of context of of the caller of ``Thread.start()``
1287+
by default, use a copy of context of the caller of ``Thread.start()``
12881288
when starting. Otherwise, new threads will start with an empty context.
12891289
If unset, this variable defaults to ``1`` on free-threaded builds and to
12901290
``0`` otherwise. See also :option:`-X thread_inherit_context<-X>`.

Doc/whatsnew/3.13.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1996,7 +1996,7 @@ New Deprecations
19961996
(Contributed by Alex Waygood in :gh:`105566` and :gh:`105570`.)
19971997

19981998
* Deprecate the :func:`typing.no_type_check_decorator` decorator function,
1999-
to be removed in in Python 3.15.
1999+
to be removed in Python 3.15.
20002000
After eight years in the :mod:`typing` module,
20012001
it has yet to be supported by any major type checker.
20022002
(Contributed by Alex Waygood in :gh:`106309`.)

0 commit comments

Comments
 (0)