[issue13521] Make dict.setdefault() atomic

Antoine Pitrou report at bugs.python.org
Sun Jan 8 22:45:28 CET 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> Do you have any idea, how I might this part? I mean how to check, that
> this is called only once?

Checking that __eq__ is called only once should be a good proxy.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13521>
_______________________________________


More information about the Python-bugs-list mailing list