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 terry.reedy
Recipients docs@python, eric.araujo, ezio.melotti, peter.otten, terry.reedy
Date 2011-11-30.22:54:25
SpamBayes Score 1.1196406e-08
Marked as misclassified No
Message-id <1322693666.58.0.787455210926.issue13510@psf.upfronthosting.co.za>
In-reply-to
Content
This current line is
"Read and return a list of lines from the stream. hint can be specified to control the number of lines read: no more lines will be read if the total size (in bytes/characters) of all lines so far exceeds hint."

I would like to see added
"Since a file is a line iterator, file.readlines() == list(file). To save time and space, iterate over lines of a file with for line in file: process(line)."
(with code markup for the two snippets).
History
Date User Action Args
2011-11-30 22:54:26terry.reedysetrecipients: + terry.reedy, peter.otten, ezio.melotti, eric.araujo, docs@python
2011-11-30 22:54:26terry.reedysetmessageid: <1322693666.58.0.787455210926.issue13510@psf.upfronthosting.co.za>
2011-11-30 22:54:26terry.reedylinkissue13510 messages
2011-11-30 22:54:25terry.reedycreate