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 cool-RR
Recipients Saimadhav.Heblikar, cool-RR, eric.smith, ethan.furman, josh.r, mark.dickinson, pitrou, r.david.murray, rhettinger, scoder, serhiy.storchaka, steven.daprano
Date 2014-10-04.15:54:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412438058.09.0.288067417168.issue22515@psf.upfronthosting.co.za>
In-reply-to
Content
Hi everybody,

I agree we have a mess on our hands, with lots of cases where comparison is weird. To be honest I've given up on `collections.Counter` at this point. The fact that it's a "hybrid mapping/multiset" is the cause of all the problems, so I just made my own class that is defined as a multiset with only positive integer values, and I'm going to use that and define methods on it without having to worry about these weird cases. Unless someone else wants to champion this issue and resolve the edge cases, it can be closed as far as I'm concerned.

I really wish that `collections.Counter` wouldn't have been added to the standard library as a "hybrid mapping/multiset"; I think that it shows emphasis on the implementation rather than the usage, while the usage is more important. But there's nothing I can do about that. (If there was a place where we can make notes for Python 4, I'd put a note there about it.)
History
Date User Action Args
2014-10-04 15:54:18cool-RRsetrecipients: + cool-RR, rhettinger, mark.dickinson, pitrou, scoder, eric.smith, steven.daprano, r.david.murray, ethan.furman, serhiy.storchaka, Saimadhav.Heblikar, josh.r
2014-10-04 15:54:18cool-RRsetmessageid: <1412438058.09.0.288067417168.issue22515@psf.upfronthosting.co.za>
2014-10-04 15:54:18cool-RRlinkissue22515 messages
2014-10-04 15:54:17cool-RRcreate