[issue10557] Malformed error message from float()

Alexander Belopolsky report at bugs.python.org
Sat Dec 4 04:05:00 CET 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

Hopefully this is the last iteration before commit.  As discussed, I took whitespace processing out of PyUnicode_TransformDecimalToASCII() and made it public.  Whitespace conversion in int()/float()/complex() is repetitious and can be optimized by, for example only converting leading and trailing whitespace.  I erred on the side of correctness here and real optimization will come from making conversion algorithms operate directly on Py_UNICODE characters.  This looks like a relatively easy thing to do, but is definitely outside of the scope of this issue.

----------
Added file: http://bugs.python.org/file19931/issue10557d.diff

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


More information about the Python-bugs-list mailing list