sys.excepthook, getting traceback values

Josh Close narshe at
Fri Jul 23 16:02:36 CEST 2004

When sys.excepthook is called, type, value and traceback are passed
into it. How do I get the values of traceback?

I've tried printing it, but I get the memory location. I'm gussing
there are some methods to use on it.

>From what I can tell the traceback that's passed in works differently
from the module traceback.

I just need to get the traceback to log it. I can use type and value,
but that doesn't print what line the error occurred.


More information about the Python-list mailing list