[issue40764] Conflation of Counter with Multiset

2020-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: For the most part, Counter() works fine with negative counts. The update() and subtract() methods were specifically designed to work with negative values. Nothing prevents use cases with negative counts. In addition, there are some methods like elements

[issue40764] Conflation of Counter with Multiset

2020-05-25 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue40764] Conflation of Counter with Multiset

2020-05-25 Thread Paul
New submission from Paul : The collections docs state: "Several mathematical operations are provided for combining Counter objects to produce multisets (counters that have counts greater than zero)." I am surprised at the clear level of decision into conflating counters with multisets. Why b