do...while loops

Dan Parisien dan at eevolved.com
Tue Feb 6 03:44:01 EST 2001


Issac Trotts wrote:

> How about this:
> 
> file = open(...)
> while(1):
>     line = file.readline()
>     if(line == ""): break
> 
> -Issac

Oh yeah... breaks. 
*sigh* (not a big fan...)

Thank you Issac,
Dan



More information about the Python-list mailing list