"Gabriel Genellina" <gagsl-...@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. -- http://mail.python.org/mailman/listinfo/python-list