[issue23185] add inf and nan to math module

Mark Dickinson report at bugs.python.org
Wed Jan 7 18:07:00 CET 2015


Mark Dickinson added the comment:

Implementation suggestion: if possible, use the _Py_dg_stdnan and _Py_dg_infinity functions from Python/dtoa.c.  These are a little safer than the Py_NAN and Py_HUGE_VAL macros, and will give results consistent with the float("inf") and float("nan") constructions.

----------

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


More information about the Python-bugs-list mailing list