do...until wisdom needed...

Benjamin.Altman benjamin.altman at noaa.gov
Mon Apr 16 14:07:48 EDT 2001


Why couldn't you just say that "all control statements in Python are dedented,
end with a :" _because they_ "have code following the statement."?  So if one
would be created that doesn't have code following, there would be no need for it
to end with a ":" and it could be dedetended from the other end...



Andrew Dalke wrote:

> The other one is that no one could think of a nice way to
> do the indentation given that it requires two control statements,
> and all control statements in Python are dedented, end with a :
> and have code following the statement.  The "until" clause
> breaks one of those, unless you always follow it with a dummy
> "pass" statement.




More information about the Python-list mailing list