[issue45936] collections.Counter drops key if value is 0 and updating using += operator
Raymond Hettinger
report at bugs.python.org
Mon Nov 29 22:46:38 EST 2021
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
I don't think there is a need to list the inplace methods. They were put in to optimize what was already occurring when only the __add__ method was defined. Also, other container typically don't specifically call out the inplace methods.
----------
nosy: +rhettinger
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45936>
_______________________________________
More information about the Python-bugs-list
mailing list