[Python-ideas] math.inf and math.nan constants

Alexander Heger python at 2sn.net
Fri Jan 9 12:31:54 CET 2015

>> IEEE754 requires that all comparisons with NaN give false, i.e.,
> Not quite. "Not equal" comparisons should return true.

yes.  Sorry for the omission.

> NANs should compare unordered and unequal to everything including
> themselves.


More information about the Python-ideas mailing list