3 ms·
The GIL has atomic bytecodes as a side effect and this assumption has become part of the API. There is nothing on the datastructure side that can be done to "f
by DasIch 10y ago
The GIL has atomic bytecodes as a side effect and this assumption has become part of the API.
There is nothing on the datastructure side that can be done to "fix" this.
In any case memory access should be considered a memory management problem just like allocating and freeing memory is. It needs to be solved on the language level to create sufficiently high level user experience.
You can only do that if you're willing to do things very differently such as Rusts Ownership/Borrowing approach.