else in loops (was Re: mutability, namimg, ...)

Roy Smith roy at panix.com
Thu May 10 10:55:19 EDT 2001


Aahz Maruch <aahz at panix.com> wrote:
>Possibly.  The big difference between the looping structures and the
>standard if is that *both* true and false blocks can execute.  Not in
>the same iteration of the loop, of course, but still...

Almost seems like it should have been:

while foo:
   xxx
then:
   yyy

as in "while foo is true, do xxx, then do yyy".



More information about the Python-list mailing list