Skip to content

Commit acc0e82

Browse files
jianghuyiyuanAlexWaygood
authored andcommitted
Fix typos in docs, error messages and comments (python#122502)
(cherry-picked from commit 46f5a4f) Signed-off-by: jianghuyiyuan <[email protected]>
1 parent c47943a commit acc0e82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/howto/isolating-extensions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ That is, heap types should:
339339
- Define a traverse function using ``Py_tp_traverse``, which
340340
visits the type (e.g. using ``Py_VISIT(Py_TYPE(self))``).
341341

342-
Please refer to the the documentation of
342+
Please refer to the documentation of
343343
:c:macro:`Py_TPFLAGS_HAVE_GC` and :c:member:`~PyTypeObject.tp_traverse`
344344
for additional considerations.
345345

Doc/library/threading.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ method. The :meth:`~Event.wait` method blocks until the flag is true.
10141014
has not expired. The return value represents the
10151015
reason that this blocking method returned; ``True`` if returning because
10161016
the internal flag is set to true, or ``False`` if a timeout is given and
1017-
the the internal flag did not become true within the given wait time.
1017+
the internal flag did not become true within the given wait time.
10181018

10191019
When the timeout argument is present and not ``None``, it should be a
10201020
floating-point number specifying a timeout for the operation in seconds,

0 commit comments

Comments
 (0)