Message370230
I would also have preferred to use the operators <, >, <=, >=, and ==. The docs in the patch explain why we can't go down this path.
Also, while counters have support for multiset operations, they continue to support other use cases a well (negative counts and fractional counts). That support can't be removed without breaking existing code that relies on it.
From the outset, a Counter was just a dictionary that return 0 for missing keys. Users are free to use that concept however they want. |
|
Date |
User |
Action |
Args |
2020-05-28 15:41:30 | rhettinger | set | recipients:
+ rhettinger, veky |
2020-05-28 15:41:30 | rhettinger | set | messageid: <1590680490.43.0.896402665789.issue40755@roundup.psfhosted.org> |
2020-05-28 15:41:30 | rhettinger | link | issue40755 messages |
2020-05-28 15:41:30 | rhettinger | create | |
|