mt.traceback

Additional utitlities dealing with traceback.

Instead of:

import traceback

You do:

from mt import traceback

It will import the traceback package plus the additional stuff implemented here.

Please see Python package traceback for more details.

Functions

mt.traceback.format_exc_info(exc_type, exc_value, exc_traceback)

Formats (exception type, exception value, traceback) into multiple lines.

mt.traceback.extract_stack_compact()

Returns the current callstack in a compact format.