do...until wisdom needed...

Andrew Henshaw andrew_dot_henshaw_at_earthling_dot_net
Mon Apr 16 22:43:10 EDT 2001


I have difficulties with all the proposals that have been given in the past
for a suitable 'until' syntax.  However, I have advocated that 'do' as an
alias for 'while 1', would be cleaner, more elegant, and simpler to grasp
for new programmers (e.g., children).

Therefore, in a half-attempt to answer your question, I believe that most
Pythonic implementation of do-until would be:

do:
    some code
    if condition:
        break


Andrew Henshaw





More information about the Python-list mailing list