eof?

Dietmar Lang dietmar at wohnheim.fh-wedel.de
Wed Aug 15 06:18:36 EDT 2001


Hi,

> There are several ways.  Best overall, today (Python 2.1):
> 
>     for line in fh.xreadlines():
>         process(line)

Is xreadlines something I missed or is it a misspelled readlines?
Because as far as I know readlines reads in the whole file into a list
containing the lines, which might not be so practical if the file is
waay big?

Kudos, Dietmar



More information about the Python-list mailing list