Showing content from http://mail.python.org/pipermail/python-dev/attachments/20150907/ea2214a8/attachment.html below:
<div dir="ltr">I noticed that collections.Counter, unlike set, doesn't support the ordered comparison operators (> < >= <=). I'd like to propose implementing these operators in an analogous fashion to set: counter1 >= counter2 if counter1 contains at least as many of every key as counter2 does. Cases where counter1 doesn't have a key and counter2 has a negative amount of that key would still count as >=. counter1 > counter2 when counter1 >= counter2 and counter1 != counter2.<div><br></div><div>Does this sound reasonable? If so I'll write up and submit a patch.</div><div><br></div><div><div><div><div><div><div class="gmail_signature"><div dir="ltr">- Kerrick</div></div></div>
</div></div></div></div></div>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4