How can an Exception pass over an "except" clause ?

Nebur nospam1.reifenberg at gmx.de
Wed May 30 14:49:56 EDT 2007


>
> @Tijs: I think when re-raising, the backtrace will always point to the
> line where it was re-raised but not to line 1265. (Or can we re-raise
> an exception so that it preserves the backtrace of the "original"
> exception?)

@Tijs: Because of distrusting my own text above, I've checked re-
raising ... and indeed, you've been right. "raise" does _not_ produce
a new backtrace but uses the old one. Learned something new about
Python now... I think that clearifies all the "magic" behaviour.
Thank you,
 Ruben




More information about the Python-list mailing list