[Python-Dev] GIL required for all Python calls? (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Thu Jan 7 21:43:17 CET 2010


Martin v. Löwis <martin v.loewis.de> writes:

I don't think that's possible. The regex engine can also operate on objects whose representation may move in memory when you don't hold the GIL (e.g. buffers that get mutated).

Why is it a problem? If we get a buffer through the new buffer API, the object should ensure that the representation isn't moved away until the buffer is released.

Regards

Antoine.



More information about the Python-Dev mailing list