Why is "while" ticking me off???

Allan M. Wind allanwind at mediaone.net
Fri Oct 6 13:42:13 EDT 2000


On 2000-10-06 16:13:41, Alan Gauld wrote:

> line = fp.readline()
> while line:
>    # do something wiyth line
>    line = fp.readline()

Which is a well-known construct.


/Allan
-- 
Allan M. Wind			email: allanwind at mediaone.net
P.O. Box 2022			finger: awind at digit-safe.dyndns.org (GPG/PGP)
Woburn, MA 01888-0022		icq: 44214251
USA




More information about the Python-list mailing list