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

"Martin v. Löwis" martin at v.loewis.de
Thu Jan 7 21:59:29 CET 2010


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

Ok, here is another problem: SRE_OP_REPEAT uses PyObject_MALLOC,
which requires the GIL (it then also may call PyErr_NoMemory,
which also requires the GIL).

Regards,
Martin



More information about the Python-Dev mailing list