sys.path_hooks A list of callables that take a path argument to try to create a finder
sys.maxsize An integer giving the maximum value a variable of type Py_ssize_t can take. It’s usually 2**31
kind Describes how argument values are bound to the parameter. Possible values (accessible via Parameter, like
contextlib.redirect_stderr(new_target) Similar to redirect_stdout() but redirecting
lineno For syntax errors - the line number where the error occurred.
sys.last_type sys.last_value sys.last_traceback These three variables
sys.modules This is a dictionary that maps module names to modules which have already been loaded. This can be manipulated to
inspect.getmro(cls) Return a tuple of class cls’s base classes, including cls, in method resolution order. No class appears
site.addsitedir(sitedir, known_paths=None) Add a directory to sys.path and process its .pth files. Typically used
sys.setrecursionlimit(limit) Set the maximum depth of the Python interpreter stack to limit. This limit prevents infinite
Page 9 of 26