This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Nikita Smetanin, josh.r, remi.lapeyre, rhettinger, xtreak
Date 2019-03-20.15:50:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553097005.62.0.118411162043.issue36380@roundup.psfhosted.org>
In-reply-to
Content
As Josh pointed out, this is how counters are documented and tested to work, so it is an unchangeable decision (i.e. it would break code that relying on the saturating arithmetic feature).  Accordingly, I'm marking this as closed, not a bug.

On the plus side (no pun intended), a counter is just a kind of dictionary so you can easily implement your own behaviors with just a simple for-loop:

   for x in a:
       b[a] += a
History
Date User Action Args
2019-03-20 15:50:05rhettingersetrecipients: + rhettinger, josh.r, remi.lapeyre, xtreak, Nikita Smetanin
2019-03-20 15:50:05rhettingersetmessageid: <1553097005.62.0.118411162043.issue36380@roundup.psfhosted.org>
2019-03-20 15:50:05rhettingerlinkissue36380 messages
2019-03-20 15:50:05rhettingercreate