Message227852
The request sounds ok to me. As in the corner case of negative values, it seems that Counter currently doesn't elide zero values, e.g.:
>>> Counter({'a': 0}) == Counter({})
False
Therefore, we should have:
>>> Counter({'a': -1}) < Counter({'a': 0})
True
but:
>>> Counter({'a': -1}) < Counter({})
False
(I must admit, the current semantics of Counter look a bit ad hoc and not terribly consistent... halfway between a regular mapping and a multiset) |
|
Date |
User |
Action |
Args |
2014-09-29 22:54:15 | pitrou | set | recipients:
+ pitrou, steven.daprano, r.david.murray, cool-RR, ethan.furman, serhiy.storchaka, josh.r |
2014-09-29 22:54:15 | pitrou | set | messageid: <1412031255.62.0.541505261621.issue22515@psf.upfronthosting.co.za> |
2014-09-29 22:54:15 | pitrou | link | issue22515 messages |
2014-09-29 22:54:15 | pitrou | create | |
|