Skip to content

Commit ce29623

Browse files
ngoldbaummattip
authored andcommitted
Adjust comment and condense
1 parent 091b865 commit ce29623

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/cffi/recompiler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
VERSION_EMBEDDED = 0x2701
88
VERSION_CHAR16CHAR32 = 0x2801
99

10+
FREE_THREADED_BUILD = sysconfig.get_config_var("Py_GIL_DISABLED")
1011
USE_LIMITED_API = ((sys.platform != 'win32' or sys.version_info < (3, 0) or
1112
sys.version_info >= (3, 5)) and
12-
(not sysconfig.get_config_var("Py_GIL_DISABLED") or sys.version_info >= (3, 15))) # free-threaded doesn't yet support limited API
13+
# free-threaded build doesn't support the stable ABI until Python 3.15
14+
(not FREE_THREADED_BUILD or sys.version_info >= (3, 15)))
1315

1416
class GlobalExpr:
1517
def __init__(self, name, address, type_op, size=0, check_value=0):

0 commit comments

Comments
 (0)