do...while loops

Dan Parisien dan at eevolved.com
Tue Feb 6 06:26:52 CET 2001


why don't do...while loops exist in python? Is there are better way to get 
to that functionality?

e.g.
file = open(...)
do:
        line = file.readline()
while line != ""


Do I have to write a PEP or read some more documentation? ;-)

Thanks,
Dan



More information about the Python-list mailing list