mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Co-authored-by: jianghuyiyuan <shuangcui@live.com> Fix typos in docs, error messages and comments (#122502)
This commit is contained in:
parent
c47943aa5e
commit
372df19508
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue