Deeper tracebacks?
R. Bernstein
rocky at panix.com
Fri Dec 12 23:14:53 EST 2008
"Gabriel Genellina" <gagsl-py2 at yahoo.com.ar> writes:
..
> No, last_traceback is the last *printed* traceback in the interactive
> interpreter.
Well more precisely the traceback that is passed to sys.excepthook()
when an unhandled exception occcurs, since the hook that might not
decide to print anything ;-)
> Use the third element in sys.exc_info() instead:
Hmm... I'm not sure what I was thinking when I read that way back
when, but you are correct and caught a bug in my code. I really do
need to do better about writing tests. Maybe next
incarnation... Thanks.
More information about the Python-list
mailing list