Message139268
| 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: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 |
|