4 ms·
Indeed, and in that case the GIL is effectively a non-issue (there's no requirement for the GIL to be held by non-python code).
by falcolas 9y ago
Indeed, and in that case the GIL is effectively a non-issue (there's no requirement for the GIL to be held by non-python code).
- Animats 9y agoNo, no, if you're manipulating Python objects from C code, you have to hold the lock. You can release it only when not doing anything with objects in Python's memory space. Otherwise you get race conditions and intermittent crashes.