PyDocs

Nav

Python Runtime Services

_is_gil_enabled

sys

function · Added in 3.13
  • _is_gil_enabled()
Return True if the GIL is currently enabled and False otherwise.

The official docs include a CPython implementation detail for this entry.

0 Examples
No examples for sys/_is_gil_enabled.
See Also
No see-alsos for sys/_is_gil_enabled
0 Notes
No notes for _is_gil_enabled