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 r.david.murray
Recipients r.david.murray, ssbarnea, terry.reedy
Date 2011-06-27.13:37:24
SpamBayes Score 5.6674065e-09
Marked as misclassified No
Message-id <1309181845.26.0.666661286511.issue12398@psf.upfronthosting.co.za>
In-reply-to
Content
rdmurray>python2.6 py27-str-unicode-bytes.py 
type(b)=<type 'str'>
Traceback (most recent call last):
  File "py27-str-unicode-bytes.py", line 17, in <module>
    unicode_str += b # this line will throw UnicodeDecodeError on Python 2.7
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 4: ordinal not in range(128)

And of course it doesn't work earlier than 2.6 since the b'' notation isn't supported before 2.6.
History
Date User Action Args
2011-06-27 13:37:25r.david.murraysetrecipients: + r.david.murray, terry.reedy, ssbarnea
2011-06-27 13:37:25r.david.murraysetmessageid: <1309181845.26.0.666661286511.issue12398@psf.upfronthosting.co.za>
2011-06-27 13:37:24r.david.murraylinkissue12398 messages
2011-06-27 13:37:24r.david.murraycreate