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

Hrvoje Nikšić report at bugs.python.org
Wed Apr 16 11:20:13 CEST 2014


Hrvoje Nikšić added the comment:

Using -fp-model strict (or other appropriate icc flag) seems like a reasonable resolution.

It should likely also be applied to Python 3.x, despite the version field of this issue. (Even if float('nan') happens to work in current 3.x, internal code that returns Py_NAN can and will break.)

----------

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


More information about the Python-bugs-list mailing list