Python indentation

Peter Hansen peter at engcorp.com
Fri Jul 9 06:44:09 EDT 2004


Antoon Pardon wrote:

> Yes, and I would also be interested in an other proposal
> that went something like:
> 
> 
> while condition1:
>   code
> and while condition2:
>   code
> and while condition3:
>   code
> 
> maybe we should combine them into something like
> 
> do:
>   code
> and while condition1:
>   code
> and while condition3:
>   code

As with David, I have no idea what these are supposed to do.
Could you please translate them into the existing Python
loop idiom (while,if/break etc) so that those of us who can't
read minds can understand what the above constructs are
intended to do?

-Peter



More information about the Python-list mailing list