Skip to content

Commit cf2d4ad

Browse files
committed
gh-153263: keep historical lock names and clarify pymutex in docs
1 parent 8c5b75e commit cf2d4ad

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/library/sys.rst

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

22412241
The name of the lock implementation:
22422242

2243-
* ``"pymutex"``: a lock uses the PyMutex implementation
2244-
* ``None`` if the lock implementation is not exposed (e.g. : on Windows and WASI)
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 PyMutex implementation (Python 3.15 and newer)
2246+
* ``None`` if this information is unknown
22452247

22462248
.. attribute:: thread_info.version
22472249

0 commit comments

Comments
 (0)