traceback.extract_tb(tb, limit=None) Return a list of “pre-processed” stack trace entries extracted from the traceback object
classmethod from_list(a_list) Construct a StackSummary object from a supplied old-style list of tuples. Each tuple
annotation The annotation for the parameter. If the parameter has no annotation, this attribute is set to Parameter.empty
gc.collect(generations=2) With no arguments, run a full collection. The optional argument generation may be an integer
class contextlib.ExitStack A context manager that is designed to make it easy to programmatically combine other context managers
sys.getwindowsversion() Return a named tuple describing the Windows version currently running. The named elements are major
sys.argv The list of command line arguments passed to a Python script. argv[0] is the script name (it is operating
site.getusersitepackages() Return the path of the user-specific site-packages directory, USER_SITE. If it is not
push(exit) Adds a context manager’s __exit__() method to the callback stack. As
inspect.getmodulename(path) Return the name of the module named by the file path, without including the names of enclosing
Page 13 of 26