sys.is_finalizing() Return
atexit.unregister(func) Remove func from the list of functions to be run at interpreter shutdown. After calling
sys.__interactivehook__ When this attribute exists, its value is automatically called (with no arguments) when the interpreter
@abc.abstractstaticmethod A subclass of the built-in
inspect.getframeinfo(frame, context=1) Get information about a frame or traceback object. A named
inspect.isclass(object) Return true if the object is a class, whether built-in or created in Python code.
gc.get_threshold() Return the current collection thresholds as a tuple of (threshold0, threshold1, threshold2)
sys.hexversion The version number encoded as a single integer. This is guaranteed to increase with each version, including proper
filename For syntax errors - the file name where the error occurred.
contextlib.redirect_stdout(new_target) Context manager for temporarily redirecting
Page 24 of 26