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 ethan.furman
Recipients cool-RR, ethan.furman, r.david.murray, serhiy.storchaka, steven.daprano
Date 2014-09-29.22:06:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412028362.79.0.479883928365.issue22515@psf.upfronthosting.co.za>
In-reply-to
Content
set's don't have values, and you are wanting to implement the partial ordering based on the values.  (side-note: how does partial-ordering work for sets?)

> That is, one counter will be considered smaller-or-equal to another if for any
> item in the first counter, the second counter has an equal or bigger amount of
> that item.

According to your definition, my example should have returned True, which is clearly nonsensical.

Even if you changed the definition to:

  For every item in the first counter, that item's value is less than the
  corresponding item in the second counter.

You have situations like:

  Counter({'a':1, 'b':1}) < Counter({'a':2})

I just don't think there is one interpretation that is going to be correct most of the time.
History
Date User Action Args
2014-09-29 22:06:02ethan.furmansetrecipients: + ethan.furman, steven.daprano, r.david.murray, cool-RR, serhiy.storchaka
2014-09-29 22:06:02ethan.furmansetmessageid: <1412028362.79.0.479883928365.issue22515@psf.upfronthosting.co.za>
2014-09-29 22:06:02ethan.furmanlinkissue22515 messages
2014-09-29 22:06:02ethan.furmancreate