[issue28427] WeakValueDictionary next bug (with multithreading)
Armin Rigo
report at bugs.python.org
Fri Oct 14 03:57:22 EDT 2016
Armin Rigo added the comment:
I'll admit I don't know how to properly fix this issue. What I came up with so far would need an atomic compare_and_delete operation on the dictionary self.data, so that we can do atomically:
+ elif self.data[wr.key] is wr:
del self.data[wr.key]
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28427>
_______________________________________
More information about the Python-bugs-list
mailing list