[issue13521] Make dict.setdefault() atomic
Antoine Pitrou
report at bugs.python.org
Sun Jan 8 18:58:44 CET 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
Looking at the patch again, I think this isn't enough.
setdefault() will still call the lookup routine twice which, in the general case (i.e. lookdict() not lookdict_unicode()), can call arbitrary Python code through e.g. __eq__ methods.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13521>
_______________________________________
More information about the Python-bugs-list
mailing list