From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 19 Jul 2026 15:03:25 +0000 (+0200) Subject: [3.15] gh-152798: update sys.thread_info.lock documentation to match implementation... X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=fbac0fba551d4ea2d61c87b82ec2d727d42cfda6;p=thirdparty%2FPython%2Fcpython.git [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 --- diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index b4f410a020f8..212bd93d4a7c 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