do...until wisdom needed...

Andrew Henshaw andrew_dot_henshaw_at_earthling_dot_net
Tue Apr 17 21:26:40 EDT 2001


"Sheila King" <sheila at spamcop.net> wrote in message
> But, as already mentioned in this thread, the word "do" doesn't
necessarily
> imply looping.
>
> Wouldn't this be even more preferable?
>
> loop:
>     some code
>     if condition:
>         break
>
Yes it would.  Or maybe 'repeat'.






More information about the Python-list mailing list