2 ms·
> if you don't have GIL, you'll need to manage explicit locks You need to do that with multithreaded Python code with the GIL. The GIL only guarantees that ope
by pdonis 3y ago
> if you don't have GIL, you'll need to manage explicit locks
You need to do that with multithreaded Python code with the GIL. The GIL only guarantees that operations that take a single bytecode are thread-safe. But many common operations (including built-in operators, functions, and methods on built-in types) take more than one bytecode.