[issue14521] math.copysign(1., float('nan')) returns -1.

Mark Dickinson report at bugs.python.org
Mon Apr 9 19:02:58 CEST 2012


Mark Dickinson <dickinsm at gmail.com> added the comment:

Here's an example based on the dtoa.c code.  It only changes the return value of float('nan'), and doesn't affect any other existing uses of the Py_NAN macro.  It needs tests.

----------
keywords: +patch
Added file: http://bugs.python.org/file25163/issue14521.patch

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


More information about the Python-bugs-list mailing list