Skip to content

Commit 67123ee

Browse files
committed
Add documentation for sys._jit_enabled and what's new entry.
1 parent 49336ab commit 67123ee

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Doc/library/sys.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,13 @@ always available.
12351235

12361236
.. versionadded:: 3.13
12371237

1238+
.. function:: _jit_enabled()
1239+
Return :const:`True` if :ref:`JIT compiler <whatsnew313-jit-compiler>` is active.
1240+
Return :const:`False` otherwise.
1241+
1242+
.. availability:: JIT builds, tier 2 interpreter doesn't count here.
1243+
1244+
.. versionadded:: next
12381245

12391246
.. function:: is_finalizing()
12401247

Doc/whatsnew/3.14.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ sys
443443
which only exists in specialized builds of Python, may now return objects
444444
from other interpreters than the one it's called in.
445445

446+
* Add a :func:`sys._jit_enabled` which helps to determine in runtime if
447+
:ref:`JIT compiler <whatsnew313-jit-compiler>` is active.
448+
446449

447450
unicodedata
448451
-----------
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Allow to determine whether the JIT is enabled at runtime via :func:`!sys._jit_enabled`.
1+
Allow to determine whether the JIT is enabled at runtime via :func:`sys._jit_enabled`.

0 commit comments

Comments
 (0)