sys.call_tracing(func, args) Call func(*args), while tracing is enabled. The tracing state is saved, and restored
inspect.getinnerframes(traceback, context=1) Get a list of frame records for a traceback’s frame and all inner frames. These
annotation The annotation for the parameter. If the parameter has no annotation, this attribute is set to Parameter.empty
sys.getrefcount(object) Return the reference count of the object. The count returned is generally one higher than you
sys.argv The list of command line arguments passed to a Python script. argv[0] is the script name (it is operating
inspect.getmodulename(path) Return the name of the module named by the file path, without including the names of enclosing
sys.setcheckinterval(interval) Set the interpreter’s “check interval”. This integer value determines how often the interpreter
sys.getfilesystemencoding() Return the name of the encoding used to convert Unicode filenames into system file names. The result
sysconfig.get_python_version() Return the MAJOR.MINOR Python version number as a string. Similar to sys.version[:3]
inspect.getdoc(object) Get the documentation string for an object, cleaned up with cleandoc(). If the documentation
Page 11 of 26