[issue22515] Implement partial order on Counter

Ram Rachum report at bugs.python.org
Wed Oct 1 18:42:06 CEST 2014


Ram Rachum added the comment:

I don't see why it's so hard to imagine how this will be used. Say I have a counter signifying how many of each product I have in my warehouse, and I have another counter saying how many of each product a client wants. I may use `counter2 <= counter1` to check whether there are enough products in stock. Sounds straightforward to me.

----------

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


More information about the Python-bugs-list mailing list