[issue10557] Malformed error message from float()

Alexander Belopolsky report at bugs.python.org
Sun Nov 28 21:37:01 CET 2010


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

On Sun, Nov 28, 2010 at 3:30 PM, Stefan Krah <report at bugs.python.org> wrote:
..
>> UnicodeEncodeError: 'decimal' codec can't encode character '\u066b'
>
> Hmm, looks like a bug? I think U+066B is correct.
>
Really?  What about

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'decimal' codec can't encode character '\uff0e' in
position 4: invalid decimal Unicode string

.. and where do we draw the line?  Note that I am not against
Decimal() accepting any c with c.isdigit() returning True, but
builtins should be less promiscuous IMO.

----------

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


More information about the Python-bugs-list mailing list