Skip to content

Commit 48cc257

Browse files
authored
gh-152798: update sys.thread_info.lock documentation to match implementation (#153263)
1 parent ac2e14b commit 48cc257

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/sys.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,8 +2240,9 @@ always available. Unless explicitly noted otherwise, all variables are read-only
22402240

22412241
The name of the lock implementation:
22422242

2243-
* ``"semaphore"``: a lock uses a semaphore
2244-
* ``"mutex+cond"``: a lock uses a mutex and a condition variable
2243+
* ``"semaphore"``: a lock uses a semaphore (Python 3.14 and older)
2244+
* ``"mutex+cond"``: a lock uses a mutex and a condition variable (Python 3.14 and older)
2245+
* ``"pymutex"``: a lock uses the :c:type:`PyMutex` implementation (Python 3.15 and newer)
22452246
* ``None`` if this information is unknown
22462247

22472248
.. attribute:: thread_info.version

0 commit comments

Comments
 (0)