[Python-de] numpy.float64(x) == float('nan') für alle x

Bernd Nawothnig Bernd.Nawothnig at t-online.de
Do Okt 30 14:19:58 CET 2014


Das ist doch sicherlich ein Bug, oder:

#v+
Python 3.4.0 (default, Apr 11 2014, 13:05:11) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.float64(56.9) == float('nan')
True
>>> np.float64(-57.9) == float('nan')
True
>>> float(-57.9) == float('nan')
False
>>> float(56.9) == float('nan')
False
>>> 
#v-



Bernd

-- 
no time toulouse


Mehr Informationen über die Mailingliste python-de