On May 21, 4:33 pm, Karlo Lozovina <[EMAIL PROTECTED]> wrote: > André <[EMAIL PROTECTED]> wrote innews:[EMAIL PROTECTED]: > > > How about something like the following (untested) > > > done = False > > while not done: > > try: > > some_function() > > done = True > > except: > > some_function2() > > some_function3() > > Sure, that works, but I was aiming for something more elegant and Pythonic > ;). > > -- > _______ Karlo Lozovina - Mosor > | | |.-----.-----. web:http://www.mosor.net|| ICQ#: 10667163 > | || _ | _ | Parce mihi domine quia Dalmata sum. > |__|_|__||_____|_____|
It's hard to get around a while loop if you want to conditionally repeat something. There's no built-in way to do what you ask. -- http://mail.python.org/mailman/listinfo/python-list