sys.last_value sys.last_traceback These three variables are not always defined; they are set when an exception is
default The default value for the parameter. If the parameter has no default value, this attribute is set to Parameter
sys.intern(string) Enter string in the table of “interned” strings and return the interned string – which is string
gc.get_count() Return the current collection counts as a tuple of (count0, count1, count2).
class inspect.Parameter(name, kind, *, default=Parameter.empty, annotation=Parameter.empty) Parameter objects are immutable
atexit.unregister(func) Remove func from the list of functions to be run at interpreter shutdown. After calling
sys.gettrace() Get the trace function as set by settrace().
traceback.walk_stack(f) Walk a stack following f.f_back from the given frame, yielding the frame and line number
classmethod extract(frame_gen, *, limit=None, lookup_lines=True, capture_locals=False) Construct a StackSummary
inspect.getargspec(func) Get the names and default values of a Python function’s arguments. A named
Page 22 of 26