traceback.format_tb(tb, limit=None) A shorthand for format_list(extract_tb(tb, limit)).
inspect.getsourcelines(object) Return a list of source lines and starting line number for an object. The argument may be a module
gc.get_referrers(*objs) Return the list of objects that directly refer to any of objs. This function will only locate those
sys.path A list of strings that specifies the search path for modules. Initialized from the environment variable PYTHONPATH
sys.__stdout__ sys.__stderr__ These objects contain the original values of stdin, stderr
sys.executable A string giving the absolute path of the executable binary for the Python interpreter, on systems where this
This module provides direct access to all ‘built-in’ identifiers of Python; for example, builtins.open is the full name for the built-in function
sys.stdin sys.stdout sys.stderr File
inspect.signature(callable, *, follow_wrapped=True) Return a Signature object for the given callable:
inspect.getcomments(object) Return in a single string any lines of comments immediately preceding the object’s source code (for
Page 8 of 26