Greg Ewing wrote:
I'm actually surprised that the exception is cleared when the function that has the exception handler completes.
I think it's probably when the "except" clause of the exception handler completes, not the function.
See for yourself:
def f(): try: raise Exception, "Hello" except: pass raise
Traceback (most recent call last): File "c.py", line 8, in ? f() File "c.py", line 3, in f raise Exception, "Hello" Exception: Hello