[issue21167] float('nan') returns 0.0 on Python compiled with icc

Hrvoje Nikšić report at bugs.python.org
Sat May 24 09:22:34 CEST 2014


Hrvoje Nikšić added the comment:

Note that defaulting to unsafe math in extensions will make *their* use of the Py_NAN macro break under icc.

If we go that route ("-fp-model strict" for Python build, but not for extensions), we should also apply the attached patch that defines Py_NAN as Py_HUGE_VAL / Py_HUGE_VAL.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21167>
_______________________________________


More information about the Python-bugs-list mailing list