https://github.com/python/cpython/commit/fbac0fba551d4ea2d61c87b82ec2d727d42cfda6
commit: fbac0fba551d4ea2d61c87b82ec2d727d42cfda6
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: vstinner <[email protected]>
date: 2026-07-19T17:03:25+02:00
summary:

[3.15] gh-152798: update sys.thread_info.lock documentation to match 
implementation (GH-153263) (#153276)

gh-152798: update sys.thread_info.lock documentation to match implementation 
(GH-153263)
(cherry picked from commit 48cc2579b65be508ca64b6cb64ce0f7922eab9ab)

Co-authored-by: Wojusensei <[email protected]>

files:
M Doc/library/sys.rst

diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index b4f410a020f86e..212bd93d4a7cc1 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to