[issue22515] Implement partial order on Counter

Serhiy Storchaka report at bugs.python.org
Mon Sep 29 22:35:26 CEST 2014


Serhiy Storchaka added the comment:

There is other definition of the <= operator for sets: "A <= B" is equivalent to "len(A - B) == 0". Extending to Counter this can mean "len(A.subtract(B).elements()) == 0".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22515>
_______________________________________


More information about the Python-bugs-list mailing list