traceback.clear_frames(tb) Clears the local variables of all the stack frames in a traceback tb by calling the clear()
contextlib.redirect_stdout(new_target) Context manager for temporarily redirecting
sys.last_value sys.last_traceback These three variables are not always defined; they are set when an exception is
filename For syntax errors - the file name where the error occurred.
@abc.abstractproperty(fget=None, fset=None, fdel=None, doc=None) A subclass of the built-in
inspect.getmodule(object) Try to guess which module an object was defined in.
gc.get_count() Return the current collection counts as a tuple of (count0, count1, count2).
args A tuple of positional arguments values. Dynamically computed from the arguments attribute.
inspect.getargspec(func) Get the names and default values of a Python function’s arguments. A named
pop_all() Transfers the callback stack to a fresh ExitStack instance and returns it. No callbacks are invoked by
Page 24 of 26