Why is "while" ticking me off???
Steve Lamb
grey at despair.rpglink.com
Thu Oct 5 21:01:46 EDT 2000
On Thu, 05 Oct 2000 19:58:25 -0400, Thomas Gagne <tgagne at ix.netcom.com> wrote:
>while line = fp.readline():
> do something with 'line'
Perlism?
>I'm obviously not approaching this in the Python idiomatic way.
while 1:
line = fp.readline()
if not line:
break
do something with 'line'
--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
ICQ: 5107343 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
More information about the Python-list
mailing list