do-while loop?

Alex alex at somewhere.round.here
Thu Mar 23 22:05:09 EST 2000


> I'm missing a 'do-while' statement in Python.

while 1:
    do_stuff
    if not cond:
        break

Yeah, it's ugly, but it doesn't hurt when the pain goes, and I don't
think there's going to be a better way any time soon.

Alex.



More information about the Python-list mailing list