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 Jim Fasarakis-Hilliard, Jáchym Barvínek, rhettinger
Date 2017-04-28.20:11:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493410308.05.0.162646848319.issue30196@psf.upfronthosting.co.za>
In-reply-to
Content
Periodically, I've looked at possibly adding these kind of extensions. 

The argument in favor in that it is easy to do and is an obvious extension with plausible utility.  

The main arguments against is that it represents feature creep far removed from the original intended use cases (the tool is primary about counting and trys not to venture into elementwise arithmetic on sparse vectors.)   

It is tempting to add a new feature that might sometimes be useful, but we should also worry that usability and learnability are impaired if the class becomes less cohesive, less thematic, and less focused on unified design goals.

The other factor against adding the feature is that since the Counter is just a dict subclass, it is easy for users to just manipulate the data directly.  We're not really adding much that a person can't already easily do themselves.
History
Date User Action Args
2017-04-28 20:11:48rhettingersetrecipients: + rhettinger, Jáchym Barvínek, Jim Fasarakis-Hilliard
2017-04-28 20:11:48rhettingersetmessageid: <1493410308.05.0.162646848319.issue30196@psf.upfronthosting.co.za>
2017-04-28 20:11:48rhettingerlinkissue30196 messages
2017-04-28 20:11:47rhettingercreate