Re: [Python-Dev] Python semantic: Is it ok to replace not x == y with x != y? (no)
15 Dec
2015
15 Dec
'15
8:01 a.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š
3251
Age (days ago)
3251
Last active (days ago)
0 comments
1 participants
participants (1)
-
Adam Bartoš