traceback.extract_stack(f=None, limit=None) Extract the raw traceback from the current stack frame. The return value has the
traceback.format_tb(tb, limit=None) A shorthand for format_list(extract_tb(tb, limit)).
sys.setprofile(profilefunc) Set the system’s profile function, which allows you to implement a Python source code profiler in
kind Describes how argument values are bound to the parameter. Possible values (accessible via Parameter, like
inspect.iscode(object) Return true if the object is a code.
sys.executable A string giving the absolute path of the executable binary for the Python interpreter, on systems where this
gc.get_objects() Returns a list of all objects tracked by the collector, excluding the list returned.
__suppress_context__ The __suppress_context__ value from the original exception.
traceback.format_exc(limit=None, chain=True) This is like print_exc(limit) but returns a string instead of printing
sys.setrecursionlimit(limit) Set the maximum depth of the Python interpreter stack to limit. This limit prevents infinite
Page 9 of 26