sys._getframe([depth]) Return a frame object from the call stack. If optional integer depth is given, return the frame
warnings.warn_explicit(message, category, filename, lineno, module=None, registry=None, module_globals=None) This is a low-level
sys.getfilesystemencoding() Return the name of the encoding used to convert Unicode filenames into system file names. The result
sys.last_traceback These three variables are not always defined; they are set when an exception is not handled and the interpreter
sys.__displayhook__ sys.__excepthook__ These objects contain the original values of displayhook and
sys.getswitchinterval() Return the interpreter’s “thread switch interval”; see setswitchinterval().
gc.set_debug(flags) Set the garbage collection debugging flags. Debugging information will be written to sys.stderr
register(subclass) Register subclass as a “virtual subclass” of this ABC. For example:
sys.version A string containing the version number of the Python interpreter plus additional information on the build number
sysconfig.get_python_version() Return the MAJOR.MINOR Python version number as a string. Similar to sys.version[:3]
Page 12 of 26