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 an exception. Christian -- http://mail.python.org/mailman/listinfo/python-list