]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] gh-152798: update sys.thread_info.lock documentation to match implementation...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 19 Jul 2026 15:03:25 +0000 (17:03 +0200)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2026 15:03:25 +0000 (17:03 +0200)
gh-152798: update sys.thread_info.lock documentation to match implementation (GH-153263)
(cherry picked from commit 48cc2579b65be508ca64b6cb64ce0f7922eab9ab)

Co-authored-by: Wojusensei <wojusensei@outlook.com>
Doc/library/sys.rst

index b4f410a020f86e129966e6d48325b3aae3c3e000..212bd93d4a7cc1a2983e7fdb635c2fd22f7db8bc 100644 (file)
@@ -2265,8 +2265,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