Message148693
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). |
|
Date |
User |
Action |
Args |
2011-11-30 22:54:26 | terry.reedy | set | recipients:
+ terry.reedy, peter.otten, ezio.melotti, eric.araujo, docs@python |
2011-11-30 22:54:26 | terry.reedy | set | messageid: <1322693666.58.0.787455210926.issue13510@psf.upfronthosting.co.za> |
2011-11-30 22:54:26 | terry.reedy | link | issue13510 messages |
2011-11-30 22:54:25 | terry.reedy | create | |
|