sys.ps2 Strings specifying the primary and secondary prompt of the interpreter. These are only defined if the interpreter is
site.addsitedir(sitedir, known_paths=None) Add a directory to sys.path and process its .pth files. Typically used
inspect.iscode(object) Return true if the object is a code.
inspect.getsourcelines(object) Return a list of source lines and starting line number for an object. The argument may be a module
sys.setprofile(profilefunc) Set the system’s profile function, which allows you to implement a Python source code profiler in
inspect.getmembers(object[, predicate]) Return all the members of an object in a list of (name, value) pairs sorted by name
inspect.getmro(cls) Return a tuple of class cls’s base classes, including cls, in method resolution order. No class appears
inspect.signature(callable, *, follow_wrapped=True) Return a Signature object for the given callable:
traceback.print_stack(f=None, limit=None, file=None) Print up to limit stack trace entries (starting from the invocation
__suppress_context__ The __suppress_context__ value from the original exception.
Page 7 of 26