| commit | c5a371280cc89a927e7278486233b16b189c6e9e | [log] [tgz] |
|---|---|---|
| author | Lysandros Nikolaou <lisandrosnik@gmail.com> | Fri Jul 25 15:11:44 2025 +0200 |
| committer | Jens Geyer <jensg@apache.org> | Sun Nov 23 14:52:12 2025 +0100 |
| tree | de3393932b6d7b57eae7283923c700aafe8b6588 | |
| parent | ac3feed1b24389efbc0865b742be1854be0406dc [diff] |
THRIFT-5888 Do not dynamically enable the GIL under free-threaded Python Client: py Patch: Lysandros Nikolaou This closes #3180
diff --git a/lib/py/src/ext/module.cpp b/lib/py/src/ext/module.cpp index fbee51d..a1b0e56 100644 --- a/lib/py/src/ext/module.cpp +++ b/lib/py/src/ext/module.cpp
@@ -197,6 +197,10 @@ if (module == nullptr) INITERROR; +#ifdef Py_GIL_DISABLED + PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED); +#endif + #if PY_MAJOR_VERSION >= 3 return module; #endif