PEP 315: Enhanced While Loop
Gareth McCaughan
Gareth.McCaughan at pobox.com
Mon May 5 16:12:50 EDT 2003
Andrew Koenig wrote:
> This is obviously intended to be tongue-in-cheek. However, it does give
> me a thought about how to express this notion in a way that is much clearer
> and requires no new keywords:
>
> while:
> <setup code>
> and while <condition>:
> <loop body>
[etc]
This is very elegant. It's a pity that it doesn't work well
for the special case of a "do...while" loop, though.
--
Gareth McCaughan Gareth.McCaughan at pobox.com
.sig under construc
More information about the Python-list
mailing list