sys.argv The list of command line arguments passed to a Python script. argv[0] is the script name (it is operating
inspect.getinnerframes(traceback, context=1) Get a list of frame records for a traceback’s frame and all inner frames. These
annotation The annotation for the parameter. If the parameter has no annotation, this attribute is set to Parameter.empty
sys.exc_info() This function returns a tuple of three values that give information about the exception that is currently being
push(exit) Adds a context manager’s __exit__() method to the callback stack. As
traceback.extract_tb(tb, limit=None) Return a list of “pre-processed” stack trace entries extracted from the traceback object
text For syntax errors - the text where the error occurred.
site.getusersitepackages() Return the path of the user-specific site-packages directory, USER_SITE. If it is not
register(subclass) Register subclass as a “virtual subclass” of this ABC. For example:
class contextlib.ExitStack A context manager that is designed to make it easy to programmatically combine other context managers
Page 13 of 26