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 <[email protected]>
<http://bugs.python.org/issue23185>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com