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 nascheme
Recipients belopolsky, doerwalter, ezio.melotti, lemburg, nascheme, r.david.murray, serhiy.storchaka, vstinner, wpk
Date 2018-10-04.22:53:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I think one bug here is that codecs readers use str.splitlines() internally.  The splitlines method treats a bunch of different characters as line separators, unlike io.<file>.readlines().  So, you end up with different behavior between doing iter(codecs.getreader(...)) and iter(

We can argue if str.splitlines() is doing the correct thing, see the table here:

However, it seems clearer to me that readlines() on a codecs reader and on a file object should really be splitting lines on the same characters.
Date User Action Args
2018-10-04 22:53:00naschemesetrecipients: + nascheme, lemburg, doerwalter, belopolsky, vstinner, ezio.melotti, r.david.murray, serhiy.storchaka, wpk
2018-10-04 22:53:00naschemesetmessageid: <>
2018-10-04 22:53:00naschemelinkissue18291 messages
2018-10-04 22:53:00naschemecreate