Ram Rachum added the comment: > There are some properties of set comparison: > > (a < b) == (a <= b and a != b)
I don't think so, because counter equality is based on dict equality so it doesn't ignore zero values. > (a <= b) == (a < b or a == b) No, ditto. > (a <= b and b <= a) == (a == b) No, ditto. > (a < b and b < a) == False Yes. > (a <= b) == (a - b == set()) Yes. > if (a <= b and b <= c) then (a <= c) Yes. > (a <= b and a <= c) == (a <= (b & c)) Yes. > (a <= c and b <= c) == ((a | b) <= c) Yes. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22515> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com