Skip to content

Commit eec33a7

Browse files
Wojusenseimiss-islington
authored andcommitted
gh-152798: update sys.thread_info.lock documentation to match implementation (GH-153263)
(cherry picked from commit 48cc257) Co-authored-by: Wojusensei <wojusensei@outlook.com>
1 parent fc840db commit eec33a7

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
@@ -2265,8 +2265,9 @@ always available. Unless explicitly noted otherwise, all variables are read-only
22652265

22662266
The name of the lock implementation:
22672267

2268-
* ``"semaphore"``: a lock uses a semaphore
2269-
* ``"mutex+cond"``: a lock uses a mutex and a condition variable
2268+
* ``"semaphore"``: a lock uses a semaphore (Python 3.14 and older)
2269+
* ``"mutex+cond"``: a lock uses a mutex and a condition variable (Python 3.14 and older)
2270+
* ``"pymutex"``: a lock uses the :c:type:`PyMutex` implementation (Python 3.15 and newer)
22702271
* ``None`` if this information is unknown
22712272

22722273
.. attribute:: thread_info.version

0 commit comments

Comments
 (0)