Feature or enhancement
...as discussed in https://discuss.python.org/t/an-api-for-controlling-and-introspecting-the-jit/73356. This will include (for 3.14):
sys._jit.is_available() -> bool: Return True if the current Python executable supports JIT compilation, and False otherwise.
sys._jit.is_enabled() -> bool: Return True if JIT compilation is enabled for the current Python process (implies sys._jit.is_available()), and False otherwise.
sys._jit.is_active() -> bool: Return True if the topmost Python frame is currently executing JIT code, and False otherwise.
Linked PRs
Feature or enhancement
...as discussed in https://discuss.python.org/t/an-api-for-controlling-and-introspecting-the-jit/73356. This will include (for 3.14):
sys._jit.is_available() -> bool: ReturnTrueif the current Python executable supports JIT compilation, andFalseotherwise.sys._jit.is_enabled() -> bool: ReturnTrueif JIT compilation is enabled for the current Python process (impliessys._jit.is_available()), andFalseotherwise.sys._jit.is_active() -> bool: ReturnTrueif the topmost Python frame is currently executing JIT code, andFalseotherwise.Linked PRs
sys._jit#133233sys._jitmodule #133287PYTHON_JITdocumentation to 3.13 #133539