Message122726
| Author |
belopolsky |
| Recipients |
belopolsky, eric.smith, ezio.melotti, lemburg, mark.dickinson, skrah, vstinner |
| Date |
2010年11月28日.20:38:11 |
| SpamBayes Score |
8.583795e-08 |
| Marked as misclassified |
No |
| Message-id |
<1290976695.52.0.199541154915.issue10557@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Sending this by e-mail was not a good idea ...
On Sun, Nov 28, 2010 at 3:30 PM, Stefan Krah <report@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
>>> float('1234.56')
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. |
|