sys.ps1 sys.ps2 Strings specifying the primary and secondary prompt of the interpreter. These are only defined if
traceback.format_tb(tb, limit=None) A shorthand for format_list(extract_tb(tb, limit)).
sys.flags The struct sequence flags exposes the status of command line flags
sys.base_prefix Set during Python startup, before site.py is run, to the same value as prefix. If
lineno For syntax errors - the line number where the error occurred.
contextlib.closing(thing) Return a context manager that closes thing upon completion of the block. This is basically
inspect.getmembers(object[, predicate]) Return all the members of an object in a list of (name, value) pairs sorted by name
site.addsitedir(sitedir, known_paths=None) Add a directory to sys.path and process its .pth files. Typically used
kind Describes how argument values are bound to the parameter. Possible values (accessible via Parameter, like
gc.get_referrers(*objs) Return the list of objects that directly refer to any of objs. This function will only locate those
Page 6 of 26