Assertions

Stephan Houben stephanh42 at gmail.com.invalid
Fri Sep 22 14:48:05 EDT 2017


Op 2017-09-22, Thomas Jollans schreef <tjol at tjol.eu>:

> Just to make the implication explicit:
>
>>>> from math import nan
>>>> nan is nan
> True
>>>> nan == nan
> False
>>>> nan != nan
> True
>>>>

To add to the fun:

>>> nan is nan
True

Stephan



More information about the Python-list mailing list