When is min(a, b) != min(b, a)?
lists at cheimes.de
Thu Jan 24 15:28:44 CET 2008
Antoon Pardon wrote:
> That doesn't follow. The problem is not that x < nan returns False
> because that is correct since x isn't smaller than nan. The problem
> is cmp(x, nan) returning 1, because that indicates that x is greater
> than nan and that isn't true.
Please report the problem. cmp(), min() and max() don't treat NaNs
right. I don't think that x < nan == False is the correct answer, too.
But I've to check the IEEE 754 specs. IMHO < nan and > nan should raise
More information about the Python-list