4 ms·
A lot of the heavy lifting is done through calls to C libraries anyhow, with Python just being a convenient way to pass the data around.
by khedoros1 9y ago
A lot of the heavy lifting is done through calls to C libraries anyhow, with Python just being a convenient way to pass the data around.
- falcolas 9y agoIndeed, 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.