why no "do : until"?

Peter Hansen peter at engcorp.com
Mon Jan 1 23:59:16 EST 2001


D-Man wrote:
> 
> dountil x > 25 :
>         ...
> 
> This is really what I meant, and the semantics would be to execute the
> loop once then test the condition.

I would be concerned about the wisdom of a syntax where the condition is
specified at the top of the loop but executed at the bottom.  Far too much
potential for confusion.  Given Python's original focus on usability for
beginners, adding such a structure would be a bad thing.



More information about the Python-list mailing list