3 ms·
> If your pure Python code fails without the GIL it can probably fail with the GIL No, if you remove the GIL there is a whole class of bugs that will appear in
by robertlagrant 2y ago
> If your pure Python code fails without the GIL it can probably fail with the GIL
No, if you remove the GIL there is a whole class of bugs that will appear in code that was safe with the GIL in place.
- spacechild1 2y agoFor example? I don't think the GIL affects the behavior of pure python code.
- robertlagrant 2y agoYeah. You're right. It guards some CPython internals, but I don't think it does affect code the way I thought it did. Thanks for the prompt to investigate.