Message221685
It is about equality. `float('nan') != float('nan')` unlike `0 == 0`.
From msg221603:
> If not equal, the sequences are ordered the same as their first differing elements.
The result of the expression: `(a, whatever) < (b, whatever)` is defined by
`a < b` if a and b differs i.e., it is not necessary to compare other elements (though Python language reference doesn't forbid further comparisons. It doesn't specify explicitly the short-circuit behavior for sequence comparisons unlike for `and`, `or` operators that guarantee the lazy (only as much as necessary) evaluation). |
|
Date |
User |
Action |
Args |
2014-06-27 12:40:05 | akira | set | recipients:
+ akira, rhettinger, mark.dickinson, Electro |
2014-06-27 12:40:05 | akira | set | messageid: <1403872805.0.0.29284092259.issue21873@psf.upfronthosting.co.za> |
2014-06-27 12:40:04 | akira | link | issue21873 messages |
2014-06-27 12:40:04 | akira | create | |
|