Message58429
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 |
|
| Date |
User |
Action |
Args |
| 2007-12-11 13:46:41 | christian.heimes | set | spambayes_score: 0.229767 -> 0.229767 recipients:
+ christian.heimes, gvanrossum, tim_one, nascheme, noam |
| 2007-12-11 13:46:41 | christian.heimes | link | issue1580 messages |
| 2007-12-11 13:46:41 | christian.heimes | create | |
|