Version-Specific Features
Python 3.14 — Supported free-threaded CPython
Free-threaded CPython becomes officially supported in 3.14, following the experimental 3.13 build. It remains a distinct build choice; extensions may re-enable the GIL. Shared mutable state still requires synchronization. Requires Python 3.14 or the relevant build; example is not executed locally.
Formal Syntax & Structure
python syntaxpython
sys._is_gil_enabled()Return Value
Feature-specific
No single return type; see the example and feature description.
Working Example
Example Snippetpython
import sys, sysconfigprint(bool(sysconfig.get_config_var('Py_GIL_DISABLED')))print(sys._is_gil_enabled())