a gap of do....while?

StarWing weasley_wx at sina.com
Sun Oct 18 01:22:55 EDT 2009


okay, I think somethings do....while is useful, but why python didn't
have it?

in lisp, we can (while (progn ....))
and in all other language we have do...while.
but in python, we only can:
cond = 1
while cond:
    cond = 0
    .....
    if ....: cond = 1

has any polite way to handle this?



More information about the Python-list mailing list