Message166037
| Author |
flox |
| Recipients |
belopolsky, exarkun, ezio.melotti, flox, mark.dickinson |
| Date |
2012年07月21日.14:57:57 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1342882678.14.0.368955438687.issue7710@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The behavior seems acceptable in 2.7 too.
>>> int('0円')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: ''
>>> int('01円')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '\x01'
>>> int(u'0円')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'decimal' codec can't encode character u'\x00' in position 0: invalid decimal Unicode string
>>> int(u'01円')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '\x01' |
|