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 belopolsky
Recipients belopolsky, mark.dickinson
Date 2010-08-12.17:52:36
SpamBayes Score 4.1463686e-09
Marked as misclassified No
Message-id <1281635558.42.0.560480502776.issue9578@psf.upfronthosting.co.za>
In-reply-to
Content
>>> int('\xA11')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa1 in position 0: invalid start byte

This is inconsistent with other number types' behavior: 
>>> float(b'\xA1')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: could not convert string to float: �
History
Date User Action Args
2010-08-12 17:52:39belopolskysetrecipients: + belopolsky, mark.dickinson
2010-08-12 17:52:38belopolskysetmessageid: <1281635558.42.0.560480502776.issue9578@psf.upfronthosting.co.za>
2010-08-12 17:52:36belopolskylinkissue9578 messages
2010-08-12 17:52:36belopolskycreate