Skip to content

Commit 8f818ca

Browse files
committed
WIP
1 parent 5551be7 commit 8f818ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mypyc/common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@
8888
# some details in the PEP are out of date.
8989
HAVE_IMMORTAL: Final = sys.version_info >= (3, 12)
9090

91+
# Are we running on a free-threaded build (GIL disabled)? This implies that
92+
# we are on Python 3.13 or later.
93+
IS_FREE_THREADED: Final = bool(sysconfig.get_config_var("Py_GIL_DISABLED"))
94+
9195

9296
JsonDict = dict[str, Any]
9397

0 commit comments

Comments
 (0)