Request for Enhancement
Aahz Maruch
aahz at netcom.com
Thu Aug 31 00:31:49 EDT 2000
In article <slrn8qrdnh.g2d.kc5tja at garnet.armored.net>,
Samuel A. Falvo II <kc5tja at garnet.armored.net> wrote:
>
>Here's what I *want*:
>
> while not F.eof():
> l = F.readline()
> ...process line...
>
>As it is, I have to do the following:
>
> l_list = F.readlines() #note plural
> for line in l_list:
> ... process line ...
Try this:
while 1:
lines = F.readlines(16000)
for line in lines:
... process line ...
if not lines:
break
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Goodbye dinner for Netcom shell, Thurs 9/7, 7:30pm, Mountain View, CA
e-mail me for details
More information about the Python-list
mailing list