Author christian.heimes
Recipients christian.heimes, gvanrossum, nascheme, noam, tim.peters
Date 2007-12-11.13:46:41
SpamBayes Score 0.229767
Marked as misclassified No
Message-id <475E94C0.2090007@cheimes.de>
In-reply-to <b348a0850712110521m31398f5dob03fc2016025dddf@mail.gmail.com>
Content
Noam Raphael wrote:
> * nan is an object of type float, which behaves like None, that is:
> "nan == nan" is true, but "nan < nan" and "nan < 3" will raise an
> exception. 

No, that's not correct. The standard defines that nan is always unequal
to nan.

False
>>> float("inf") == float("inf")
True
>>> float("inf") == -1*float("-inf")
True

The float module could gain three singletons nan, inf an neginf so you
can do

True

Christian
History
Date User Action Args
2007-12-11 13:46:41christian.heimessetspambayes_score: 0.229767 -> 0.229767
recipients: + christian.heimes, gvanrossum, tim.peters, nascheme, noam
2007-12-11 13:46:41christian.heimeslinkissue1580 messages
2007-12-11 13:46:41christian.heimescreate