Steven D'Aprano <[EMAIL PROTECTED]> writes: > I thought "raise" on its own was supposed to re-raise the previous > exception, but I've just tried it in the interactive interpreter and it > doesn't work for me.
It means you can catch an exception, do stuff with it, and then pass it upward to earlier callers: def foo(n): try: bar(n) except (ValueError, TypeError): print "invalid n:", n raise # re-signal the same error to foo's caler -- http://mail.python.org/mailman/listinfo/python-list