[issue14722] Overflow in parsing 'float' parameters in PyArg_ParseTuple*

Serhiy Storchaka report at bugs.python.org
Fri May 4 19:56:09 CEST 2012


Serhiy Storchaka <storchaka at gmail.com> added the comment:

I also thought about ±∞. But PyLong_AsDouble() raises OverflowError for
out-of-range value. And it checks strictly out of ±DBL_MAX.

Because float(10**1000) returns no float('inf'), but raises an
exception, I think that returning ±∞ will be wrong.

----------

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


More information about the Python-bugs-list mailing list