2 ms·
https://github.com/colesbury/nogil https://github.com/colesbury/nogil does manage to get rid of the GIL, but it's not certain to make it into Python core. The m
by simonw 4y ago
https://github.com/colesbury/nogil https://github.com/colesbury/nogil does manage to get rid of the GIL, but it's not certain to make it into Python core. The main problem is the amount of existing libraries that depend on the existence of the GIL without realizing it - breaking those would be extremely disruptive.
- t-vi 4y agoOn the other hand, it would fix cases where there are somewhat rare hangs that are hard to reproduce, for example in multithreaded applications embedding Python. A while ago, I hit a deadlock in LibreOffice's Python extension system. I managed to fix it by changing the GIL to the more modern Python API for that, but I never managed to produce a reasonably small test case, so I didn't submit it.