From e9d924dac5760320028c0b05ca1f7ada84b1bd66 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Tue, 25 Mar 2025 23:53:03 +0100 Subject: [PATCH] Document that sys._is_gil_enabled is CPython-specific As discussed in https://discuss.python.org/t/environment-marker-for-free-threading/60007/22 --- Doc/library/sys.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 2bdfb337f02056..bb88cf73ec1e89 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1247,6 +1247,9 @@ always available. Unless explicitly noted otherwise, all variables are read-only .. versionadded:: 3.13 + .. impl-detail:: + + It is not guaranteed to exist in all implementations of Python. .. function:: is_finalizing()