[issue13521] Make dict.setdefault() atomic

Antoine Pitrou report at bugs.python.org
Mon Dec 12 17:48:17 CET 2011


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

> Filip: Is there a reasons for using a nonlocal count rather than e.g.
> self.count?  Otherwise the test looks good.

Eric, please, could we stop such pointless nitpicking about one's
stylistic preferences? "nonlocal" is as good as any other solution here,
and reviewing is not supposed to be a pedantry contest. There are tons
of serious issues to be solved where your energy would be better spent,
IM(NSH)O.

----------

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


More information about the Python-bugs-list mailing list