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 Alexander Schrijver, barry, docs@python, ezio.melotti, gregory.p.smith, jwilk, lemburg, martin.panter, nascheme, python-dev, r.david.murray, scharron, serhiy.storchaka, steven.daprano, terry.reedy, vstinner
Date 2018-10-07.20:48:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538945293.62.0.545547206417.issue22232@psf.upfronthosting.co.za>
In-reply-to
Content
I too would prefer a new method name rather than overloading splitlines() with more keyword args (passed as hardcoded constants, usually).  Again, I think we want:

list(open(..).read().<splitmethod>()) == list(open(..))

readlines() returns a list but I think this method should return an iterator (seems more Python 3 like to me, call list if you want a list).  In that case, iterlines() seems like the right name to me.  I think it should take a 'newline' keyword that behaves the same as the open() version of the keyword.
History
Date User Action Args
2018-10-07 20:48:13naschemesetrecipients: + nascheme, lemburg, barry, terry.reedy, gregory.p.smith, vstinner, jwilk, ezio.melotti, steven.daprano, r.david.murray, docs@python, python-dev, martin.panter, serhiy.storchaka, scharron, Alexander Schrijver
2018-10-07 20:48:13naschemesetmessageid: <1538945293.62.0.545547206417.issue22232@psf.upfronthosting.co.za>
2018-10-07 20:48:13naschemelinkissue22232 messages
2018-10-07 20:48:13naschemecreate