4 ms·
Currently, dictionary updates are atomic only if the keys are primitive types. `dict.update()` will call methods like `__eq__`, and those methods (if implement
by ynik 5y ago
Currently, dictionary updates are atomic only if the keys are primitive types.
`dict.update()` will call methods like `__eq__`, and those methods (if implemented in Python) may temporarily release the GIL.
- kzrdude 5y agoUnfortunately the Python docs says that dict.update() is atomic. It's being fixed though... It came out during these discussions.