"Karlo Lozovina" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
| André <[EMAIL PROTECTED]> wrote in
| news:[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
| ;).

while True:
  try:
    some_function()
    break
  except Exception:
    patchup()

??? 



--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to