]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Fix typos in docs (#122502) (#122605)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Fri, 2 Aug 2024 11:59:34 +0000 (12:59 +0100)
committerGitHub <noreply@github.com>
Fri, 2 Aug 2024 11:59:34 +0000 (11:59 +0000)
Co-authored-by: jianghuyiyuan <shuangcui@live.com>
Fix typos in docs, error messages and comments (#122502)

Doc/howto/isolating-extensions.rst
Doc/library/threading.rst

index e35855deedbe5fa1facb6bb700f95bae59246c83..a636e06bda834410e5d0c3e07f1c0b466cda830c 100644 (file)
@@ -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.
 
index 1dbf9c2614d520a24e8764af50926967b8a6da08..5d94a7760f9f5617f394d1c483ba8714d37f071f 100644 (file)
@@ -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,