This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients christian.heimes, gvanrossum, nascheme, noam, rhettinger, tim.peters
Date 2007-12-11.17:57:48
SpamBayes Score 0.16737825
Marked as misclassified No
Message-id <1f7befae0712110957q2369b7efoda0e46d288145760@mail.gmail.com>
In-reply-to <1197395464.92.0.796092631261.issue1580@psf.upfronthosting.co.za>
Content
[Raymond]
> ...
> NaNs in particular are a really
> difficult case because our equality testing routines
> have a fast path where identity implies equality.

Works as intended in 2.5; this is Windows output:

1.#INF
>>> nan = inf - inf
>>> nan  # really is a NaN
-1.#IND
>>> nan is nan  # of course this is true
True
>>> nan == nan  # but not equal anyway
False
History
Date User Action Args
2007-12-11 17:57:48tim.peterssetspambayes_score: 0.167378 -> 0.16737825
recipients: + tim.peters, gvanrossum, nascheme, rhettinger, christian.heimes, noam
2007-12-11 17:57:48tim.peterslinkissue1580 messages
2007-12-11 17:57:48tim.peterscreate