sys.excepthook, getting traceback values

Josh Close narshe at gmail.com
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.

-Josh



More information about the Python-list mailing list