homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flox
Recipients flox
Date 2010年01月15日.19:35:20
SpamBayes Score 1.3437584e-12
Marked as misclassified No
Message-id <1263584123.75.0.822719915688.issue7710@psf.upfronthosting.co.za>
In-reply-to
Content
On Python 3:
>>> int('0円')
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'decimal' codec can't encode character '\x00' in position 0: invalid decimal Unicode string
>>> int('01円')
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '\x01'
>>> int('\x80')
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 0: unexpected code byte
>>> int('\xc0')
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc0 in position 0: unexpected end of data
On Python 2, it raises ValueError (except for '0円').
History
Date User Action Args
2010年01月15日 19:35:23floxsetrecipients: + flox
2010年01月15日 19:35:23floxsetmessageid: <1263584123.75.0.822719915688.issue7710@psf.upfronthosting.co.za>
2010年01月15日 19:35:21floxlinkissue7710 messages
2010年01月15日 19:35:20floxcreate

AltStyle によって変換されたページ (->オリジナル) /