22 Nov
2014
22 Nov
'14
6:03 p.m.
On 22.11.14 01:55, Antony Lee wrote:
As Counter objects effectively behave like multi-sets, it seems reasonable to overload <, <=, >, >= as for set objects to check whether a Counter is a sub/super-set of another Counter:
c < d <===> all(c[k] < d[k] for k in c)
Thoughts?