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 Wheerd
Recipients Wheerd
Date 2016-09-28.09:14:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475054083.73.0.310763027677.issue28296@psf.upfronthosting.co.za>
In-reply-to
Content
I would really like there to be comparison operators for collection.Counter similar to the ones for sets. While you can now use minus to some degree for that comparison, it is very inefficient. I have attached an implementation of __ge__ and __le__ as a patch. I could also provide the necessary additions to the documentation, if that is desired.
History
Date User Action Args
2016-09-28 09:14:43Wheerdsetrecipients: + Wheerd
2016-09-28 09:14:43Wheerdsetmessageid: <1475054083.73.0.310763027677.issue28296@psf.upfronthosting.co.za>
2016-09-28 09:14:43Wheerdlinkissue28296 messages
2016-09-28 09:14:43Wheerdcreate