[Python-Dev] Not-a-Number (was PyObject_RichCompareBool identity shortcut)
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Apr 28 11:17:50 CEST 2011
Mark Shannon wrote:
> NaN does not have to be a float or a Decimal.
> Perhaps it should have its own class.
Perhaps, but that wouldn't solve anything on its own. If
this new class compares reflexively, then it still violates
IEE754. Conversely, existing NaNs could be made to compare
reflexively without making them a new class.
--
Greg
More information about the Python-Dev
mailing list