Re: [Python-Dev] Python semantic: Is it ok to replace not x == y with x != y? (no)

Dec. 15, 2015
2:01 p.m.
Hello, the comparisons >=, <=, >, < cannot be optimized this way. Not every order is a total order. For example, sets a = {1, 2} and b = {2, 3} are incomparable (in the sense that both a >= b and a <= b is False), and it is no pathology. Regards, Adam Bartoš
3345
Age (days ago)
3345
Last active (days ago)
0 comments
1 participants
participants (1)
-
Adam Bartoš