NaN comparisons - Call For Anecdotes

Ethan Furman ethan at
Tue Jul 8 19:34:24 CEST 2014

On 07/08/2014 07:53 AM, Anders J. Munch wrote:
> Most people don't need to deal with NaN's in Python at all,
> fortunately. They just don't appear in normal computation, because the
> interpreter raises an exception instead.

What exception?  Apparently your claims about NaN in Python are all 
wrong -- have you been using a custom interpreter?

Python 2.7.4 (default, Sep 26 2013, 03:20:26)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> float('inf') - float('inf')


More information about the Python-list mailing list