PEP 315: Enhanced While Loop

Gareth McCaughan Gareth.McCaughan at pobox.com
Mon May 5 18:58:04 EDT 2003


Andrew Koenig wrote:
> >> while:
> >>     <setup code>
> >> and while <condition>:
> >>     <loop body>
> 
> Gareth> This is very elegant. It's a pity that it doesn't work well
> Gareth> for the special case of a "do...while" loop, though.
> 
>         while:
>             <loop body>
>         and while <condition>:
>             pass

Yes, of course. That's what I meant by "doesn't work well
with". I'm sorry if that wasn't clear.

-- 
Gareth McCaughan  Gareth.McCaughan at pobox.com
.sig under construc




More information about the Python-list mailing list