[issue10557] Malformed error message from float()
Mark Dickinson
report at bugs.python.org
Thu Dec 2 18:54:31 CET 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
Is the stripping of whitespace necessary for this fix?
Currently, the complex constructor accepts whitespace both inside and outside the (optional) parentheses:
>>> complex(' ( 2+3j ) ')
(2+3j)
The classes of whitespace accepted in each position are the same. IIUC, with your patch, that consistency would be lost---is that right?
If the whitespace stripping isn't necessary then I'd prefer to leave that change for another issue.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10557>
_______________________________________
More information about the Python-bugs-list
mailing list