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 paul.moore
Recipients paul.moore
Date 2016-03-07.10:26:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457346380.72.0.879606385641.issue26501@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-03-07 10:26:20paul.mooresetrecipients: + paul.moore
2016-03-07 10:26:20paul.mooresetmessageid: <1457346380.72.0.879606385641.issue26501@psf.upfronthosting.co.za>
2016-03-07 10:26:20paul.moorelinkissue26501 messages
2016-03-07 10:26:20paul.moorecreate