Message139268
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. |
|
Date |
User |
Action |
Args |
2011-06-27 13:37:25 | r.david.murray | set | recipients:
+ r.david.murray, terry.reedy, ssbarnea |
2011-06-27 13:37:25 | r.david.murray | set | messageid: <1309181845.26.0.666661286511.issue12398@psf.upfronthosting.co.za> |
2011-06-27 13:37:24 | r.david.murray | link | issue12398 messages |
2011-06-27 13:37:24 | r.david.murray | create | |
|