3 ms·
So, is the GIL released when the thread goes to SQLite? Is the behaviour dependent on how the interfacing between Python and C is written?
by RantyDave 4y ago
So, is the GIL released when the thread goes to SQLite? Is the behaviour dependent on how the interfacing between Python and C is written?
- remram 4y agoYes, it is released [1]. This allows you to access it from multiple thread in the same interpreter though, so I still don't understand robertlagrant's question. [1]: https://github.com/python/cpython/blob/4b81139aac3fa11779f6eedb6e621bde29e64b30/Modules/_sqlite/cursor.c#L518-L520 https://github.com/python/cpython/blob/4b81139aac3fa11779f6e...