[Python-Dev] GIL required for _all_ Python calls?

MRAB python at mrabarnett.plus.com
Thu Jan 7 04:07:56 CET 2010


I've been wondering whether it's possible to release the GIL in the
regex engine during matching.

I know that it needs to have the GIL during memory-management calls, but
does it for calls like Py_UNICODE_TOLOWER or PyErr_SetString? Is there
an easy way to find out? Or is it just a case of checking the source
files for mentions of the GIL? The header file for PyList_New, for
example, doesn't mention it!


More information about the Python-Dev mailing list