lineno For syntax errors - the line number where the error occurred.
inspect.getsourcefile(object) Return the name of the Python source file in which an object was defined. This will fail with
inspect.isabstract(object) Return true if the object is an abstract base class.
sys.ps2 Strings specifying the primary and secondary prompt of the interpreter. These are only defined if the interpreter is
class traceback.StackSummary classmethod extract(frame_gen, *, limit=None, lookup_lines=True
traceback.print_stack(f=None, limit=None, file=None) Print up to limit stack trace entries (starting from the invocation
site.addsitedir(sitedir, known_paths=None) Add a directory to sys.path and process its .pth files. Typically used
gc.get_debug() Return the debugging flags currently set.
sysconfig.get_platform() Return a string that identifies the current platform. This is used
sys.path_hooks A list of callables that take a path argument to try to create a finder
Page 6 of 26