file.readlines() question

vch fake at not.real
Sat Jul 9 05:13:20 EDT 2005


Does a call to file.readlines() reads all lines at once in the memory? 
Are the any reasons, from the performance point of view, to prefer 
*while* loop with readline() to *for* loop with readlines()?



More information about the Python-list mailing list