Chris Rebert added the comment:

file.readlines() (and perhaps dare I say even file.readline()) should not even 
be mentioned in the tutorial, IMO. It is difficult to imagine a use case where 
just iterating over the file object isn't superior. I cannot remember the last 
time that I have used either of these methods. They ought to be relegated to 
the library docs. Presenting `for line in a_file:` as merely "An alternative 
approach" in the official tutorial is practically archaic.

----------
nosy: +cvrebert

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

Reply via email to