From: Wojusensei Date: Tue, 7 Jul 2026 16:13:35 +0000 (+0800) Subject: gh-152798: update sys.thread_info.lock documentation to match implementation (#153263) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48cc2579b65be508ca64b6cb64ce0f7922eab9ab;p=thirdparty%2FPython%2Fcpython.git gh-152798: update sys.thread_info.lock documentation to match implementation (#153263) --- diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index d0fe0625deb5..9a41e406c8c1 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -2240,8 +2240,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