From eec33a7cabb0385f1e0efa317c4d2b673fa10006 Mon Sep 17 00:00:00 2001 From: Wojusensei Date: Wed, 8 Jul 2026 00:13:35 +0800 Subject: [PATCH] gh-152798: update sys.thread_info.lock documentation to match implementation (GH-153263) (cherry picked from commit 48cc2579b65be508ca64b6cb64ce0f7922eab9ab) Co-authored-by: Wojusensei --- Doc/library/sys.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index b4f410a020f86e1..212bd93d4a7cc1a 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