Neil Schemenauer <nas-pyt...@arctrix.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue22232>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to