[issue22515] Implement partial order on Counter

Stefan Behnel report at bugs.python.org
Wed Oct 1 19:36:35 CEST 2014


Stefan Behnel added the comment:

I'd raise an exception whenever the values of the Counter turn out to be uncomparable. If users manage to fill Counters with non-number values that are comparable amongst each other, or even if each key has a value of a different type, why not just support that?

All that is really required for this is that you can compare a) keys for equality and b) values of identical keys for ordering, right?

----------

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


More information about the Python-bugs-list mailing list