Basic file operation questions

Caleb Hattingh caleb.hattingh at gmail.com
Tue Feb 8 02:03:17 EST 2005


Peter, that was very clear, thanks.

> So not only is
>
> for line in file(...):
>    # do stuff
>
> the most elegant, it is also the fastest. file.readlines() comes
close, but
> is only viable for "small" files.




More information about the Python-list mailing list