]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117514: Add `sys._is_gil_enabled()` function (#118514)
authorSam Gross <colesbury@gmail.com>
Fri, 3 May 2024 15:09:57 +0000 (11:09 -0400)
committerGitHub <noreply@github.com>
Fri, 3 May 2024 15:09:57 +0000 (11:09 -0400)
commit2dae505e87e3815f087d4b07a71bb2c5cce22304
tree232577513b53b378623dc28c7dae53c846b2bf77
parent24e643d4ef024a3561c927dc07c59c435bb27bcc
gh-117514: Add `sys._is_gil_enabled()` function (#118514)

The function returns `True` or `False` depending on whether the GIL is
currently enabled. In the default build, it always returns `True`
because the GIL is always enabled.
Doc/library/sys.rst
Lib/test/test_sys.py
Misc/NEWS.d/next/Core and Builtins/2024-05-02-16-04-51.gh-issue-117514.CJiuC0.rst [new file with mode: 0644]
Python/clinic/sysmodule.c.h
Python/sysmodule.c