[Python-Dev] GIL required for all Python calls? (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Thu Jan 7 21:24:32 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 ]
A better rule would be "you may access the memory buffer in a PyString or PyUnicode object with the GIL released as long as you own a reference to the string object." Everything else is out of bounds (or not worth the bother). Is that a "yes" regarding the OP's original question about releasing the GIL during regexp searches?
No, because the regex engine may also operate on buffers that start moving around when you release the GIL.
Regards, Martin
- 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 ]