STINNER Victor added the comment: > Using the issue #26516 (PYTHONMALLOC=debug), we can check PyGILState_Check() > at runtime, but there is currently an issue related to sub-interpreters. The > assertion fails in support.run_in_subinterp(), function used by > test_threading and test_capi for example.
I created #26558 to implement GIL checks in PyMem_Malloc() and PyObject_Malloc(). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26249> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com