while loop with the condition used in the body

Gregory Ewing greg.ewing at canterbury.ac.nz
Thu Feb 25 02:46:41 EST 2010


Ulrich Eckhardt wrote:

> so why not:
> 
>   while <expression> as <name>:
>       ...
> 
> and also:
> 
>   if <expression> as <name>:
>       ...

This sort of thing has been suggested repeatedly in the
past, and it's always been rejected. That's not likely to
change. Look up the past threads for the reasons why.

-- 
Greg



More information about the Python-list mailing list