Add JIT utilities in sys._jit
#133231
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-JIT
type-feature
A feature request or enhancement
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
: ReturnTrue
if the current Python executable supports JIT compilation, andFalse
otherwise.sys._jit.is_enabled() -> bool
: ReturnTrue
if JIT compilation is enabled for the current Python process (impliessys._jit.is_available()
), andFalse
otherwise.sys._jit.is_active() -> bool
: ReturnTrue
if the topmost Python frame is currently executing JIT code, andFalse
otherwise.Linked PRs
sys._jit
#133233The text was updated successfully, but these errors were encountered: