[Python-Dev] GIL required for all Python calls? (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Thu Jan 7 21:43:17 CET 2010
- Previous message: [Python-Dev] GIL required for _all_ Python calls?
- Next message: [Python-Dev] GIL required for _all_ Python calls?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-Dev] GIL required for _all_ Python calls?
- Next message: [Python-Dev] GIL required for _all_ Python calls?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]