do ... while loop
Fredrik Lundh
fredrik at pythonware.com
Thu Oct 14 16:12:35 EDT 1999
Gerrit Holl <gerrit.holl at pobox.com> wrote:
> > while 1:
> > xxx
> > yyy
> > if not condition:
> > break
>
> Huh?
> Why don't use the following code:
>
> while condition:
> xxx
> yyy
>
> I don't understand the difference.
consider:
while 1:
xxx
condition = yyy
zzz
if not condition:
break
</F>
coming soon:
http://www.pythonware.com/people/fredrik/librarybook.htm
More information about the Python-list
mailing list