Skip to content

Commit

Permalink
Fix typos in docs, error messages and comments (python#122502)
Browse files Browse the repository at this point in the history
(cherry-picked from commit 46f5a4f)

Signed-off-by: jianghuyiyuan <[email protected]>
  • Loading branch information
jianghuyiyuan authored and AlexWaygood committed Aug 2, 2024
1 parent c47943a commit acc0e82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Doc/howto/isolating-extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ That is, heap types should:
- Define a traverse function using ``Py_tp_traverse``, which
visits the type (e.g. using ``Py_VISIT(Py_TYPE(self))``).

Please refer to the the documentation of
Please refer to the documentation of
:c:macro:`Py_TPFLAGS_HAVE_GC` and :c:member:`~PyTypeObject.tp_traverse`
for additional considerations.

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/threading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ method. The :meth:`~Event.wait` method blocks until the flag is true.
has not expired. The return value represents the
reason that this blocking method returned; ``True`` if returning because
the internal flag is set to true, or ``False`` if a timeout is given and
the the internal flag did not become true within the given wait time.
the internal flag did not become true within the given wait time.

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

0 comments on commit acc0e82

Please sign in to comment.