3 ms·
Seems like checking the docs for atomicity of every operation is a huge pain in the ass.
by colinmhayes 5y ago
Seems like checking the docs for atomicity of every operation is a huge pain in the ass.
- ajkjk 5y agoIt really is, they don't make it clear at all. Every time I have to ask the question of "is this atomic under the GIL" I struggle to find the right answer.
- kzrdude 5y agoBest to avoid sharing data, and never mutating shared data! Rust has a great rule: Sharing XOR Mutation. Python is higher level, so message passing and passing "owned" values between threads is all the more feasible and sensible.