Message261289
See the following test (in Python 3.5):
>>> u'a\nb£'.encode('utf-8').splitlines()
['a', 'b\xc2\xa3']
I encode a string in UTF-8, then use the (bytes) splitlines function on it. The return value is a list of strings, containing encoded byte values.
The bytes object isn't even documented as having a splitlines method - and if it does, then it should be returning a list of bytes objects. |
|
Date |
User |
Action |
Args |
2016-03-07 10:26:20 | paul.moore | set | recipients:
+ paul.moore |
2016-03-07 10:26:20 | paul.moore | set | messageid: <1457346380.72.0.879606385641.issue26501@psf.upfronthosting.co.za> |
2016-03-07 10:26:20 | paul.moore | link | issue26501 messages |
2016-03-07 10:26:20 | paul.moore | create | |
|