do-while loop?

Alex alex at somewhere.round.here
Fri Mar 24 04:05:09 CET 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