newbie question...
Aahz Maruch
aahz at netcom.com
Tue Dec 28 16:36:12 EST 1999
In article <3869229B.C06B94E5 at earthlink.net>,
Alexander Sendzimir <sendzimir at earthlink.net> wrote:
>
> all_the_lines_in_the_file = somefilehandle.readlines()
The one disadvantage of this is that you consume memory proportionate to
the total size of the file. If that's an issue, you have to use a while
loop with readline; you can use the QIO module to speed that up to
something closer to Perl.
--
--- Aahz (@netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
TEOTWAWKI -- 4 days and counting!
More information about the Python-list
mailing list