while (a=b()) ...
Aahz Maruch
aahz at netcom.com
Fri May 14 13:55:54 EDT 1999
In article <373B53E3.D43BA334 at compaq.com>,
Greg Ewing <greg.ewing at compaq.com> wrote:
>
> while:
> line = f.readline()
> gives line <> "":
> frobulate(line)
What does this give you that
for line in f.readline()
frobulate(line)
does not? (Assuming the necessary semantic changes to permit this to
work *well*.)
--
--- Aahz (@netcom.com)
Hugs and backrubs -- I break Rule 6 <*> http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het
'It's odd, and a little unsettling, to reflect upon the fact that English is
the only major language in which "I" is capitalized; in many other languages
"You" is capitalized and the "i" is lower case.' -- Sydney J. Harris
More information about the Python-list
mailing list