]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-152798: update sys.thread_info.lock documentation to match implementation (#153263)
authorWojusensei <wojusensei@outlook.com>
Tue, 7 Jul 2026 16:13:35 +0000 (00:13 +0800)
committerGitHub <noreply@github.com>
Tue, 7 Jul 2026 16:13:35 +0000 (21:43 +0530)
Doc/library/sys.rst

index d0fe0625deb5133683979a4976701b812a3ff93a..9a41e406c8c10e6f8b5c49b4b3c9bc4cda62210e 100644 (file)
@@ -2240,8 +2240,9 @@ always available. Unless explicitly noted otherwise, all variables are read-only
 
       The name of the lock implementation:
 
-      * ``"semaphore"``: a lock uses a semaphore
-      * ``"mutex+cond"``: a lock uses a mutex and a condition variable
+      * ``"semaphore"``: a lock uses a semaphore (Python 3.14 and older)
+      * ``"mutex+cond"``: a lock uses a mutex and a condition variable (Python 3.14 and older)
+      * ``"pymutex"``: a lock uses the :c:type:`PyMutex` implementation (Python 3.15 and newer)
       * ``None`` if this information is unknown
 
    .. attribute:: thread_info.version