[issue10557] Malformed error message from float()

Mark Dickinson report at bugs.python.org
Fri Dec 3 13:47:52 CET 2010


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

> According to comments in the code and verified by inspection,
> PyOS_string_to_double does not accept any whitespace.

Bah.  You're right, of course.  :-)

Any whitespace (post PyUnicode_EncodeDecimal) is handled in PyFloat_FromString, using Py_ISSPACE.

----------

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


More information about the Python-bugs-list mailing list