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 methane
Recipients methane, vinay.sajip
Date 2009-09-25.14:54:36
SpamBayes Score 2.8869027e-09
Marked as misclassified No
Message-id <1253890481.48.0.606191373446.issue6991@psf.upfronthosting.co.za>
In-reply-to
Content
Please see and execute an attached foo.py.

In Python 2.6.2, this cause following error:
>python foo.py
Traceback (most recent call last):
  File "foo.py", line 3, in <module>
    f.write('\xaa')
  File "C:\usr\Python2.6\lib\codecs.py", line 686, in write
    return self.writer.write(data)
  File "C:\usr\Python2.6\lib\codecs.py", line 351, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xaa in position 0:
ordinal not in ran
ge(128)
History
Date User Action Args
2009-09-25 14:54:41methanesetrecipients: + methane, vinay.sajip
2009-09-25 14:54:41methanesetmessageid: <1253890481.48.0.606191373446.issue6991@psf.upfronthosting.co.za>
2009-09-25 14:54:39methanelinkissue6991 messages
2009-09-25 14:54:37methanecreate