Message327308
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. |
|
Date |
User |
Action |
Args |
2018-10-07 20:48:13 | nascheme | set | recipients:
+ 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:13 | nascheme | set | messageid: <1538945293.62.0.545547206417.issue22232@psf.upfronthosting.co.za> |
2018-10-07 20:48:13 | nascheme | link | issue22232 messages |
2018-10-07 20:48:13 | nascheme | create | |
|