traceback.print_exception(etype, value, tb, limit=None, file=None, chain=True) Print exception information and stack trace entries
sys.path_hooks A list of callables that take a path argument to try to create a finder
inspect.getcomments(object) Return in a single string any lines of comments immediately preceding the object’s source code (for
inspect.getsourcelines(object) Return a list of source lines and starting line number for an object. The argument may be a module
stack A StackSummary representing the traceback.
format(*, chain=True) Format the exception. If chain is not True, __cause__
sys.stdin sys.stdout sys.stderr File
sys.path A list of strings that specifies the search path for modules. Initialized from the environment variable PYTHONPATH
inspect.getsourcefile(object) Return the name of the Python source file in which an object was defined. This will fail with
gc.garbage A list of objects which the collector found to be unreachable but could not be freed (uncollectable objects). Starting
Page 8 of 26