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

Mark Dickinson report at bugs.python.org
Mon Apr 7 13:04:39 CEST 2014


Mark Dickinson added the comment:

What's `sys.float_repr_style` for this build?  For Python 3.5 and short float repr, `float('nan')` shouldn't even be using Py_NAN.  It should land in _Py_parse_inf_or_nan in pystrtod.c, which uses `_Py_dg_stdnan` to get the NaN value directly from a suitable bitpattern.

----------

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


More information about the Python-bugs-list mailing list