inspect.Traceback

class inspect.Traceback

Methods

__format__ default object formatter
__getnewargs__() Return self as a plain tuple.
__getstate__() Exclude the OrderedDict from pickling
__new__(_cls, filename, lineno, function, ...) Create new instance of Traceback(filename, lineno, function, code_context, index)
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__repr__() Return a nicely formatted representation string
__sizeof__(() -> int) size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().
_asdict() Return a new OrderedDict which maps field names to their values
_make(iterable[, new, len]) Make a new Traceback object from a sequence or iterable
_replace(_self, **kwds) Return a new Traceback object replacing specified fields with new values
count(...)

Attributes

code_context Alias for field number 3
filename Alias for field number 0
function Alias for field number 2
index Alias for field number 4
lineno Alias for field number 1