test for nan

Peter Otten __peter__ at web.de
Thu Apr 1 06:41:01 EST 2004


Peter Maas wrote:

> def isNaN(x):
>      return (x == 0) and (x == 1)

This works here. Do you have an idea what the rationale behind this
behaviour (i. e. any number == nan) is?

Peter



More information about the Python-list mailing list