inspect.getfile(object) Return the name of the (text or binary) file in which an object was defined. This will fail with a
inspect.iscoroutinefunction(object) Return true if the object is a coroutine function
sys.getallocatedblocks() Return the number of memory blocks currently allocated by the interpreter, regardless of their size
traceback.print_tb(tb, limit=None, file=None) Print up to limit stack trace entries from traceback object tb
sys.getdefaultencoding() Return the name of the current default string encoding used by the Unicode implementation.
sys.executable A string giving the absolute path of the executable binary for the Python interpreter, on systems where this
warnings.filterwarnings(action, message='', category=Warning, module='', lineno=0, append=False) Insert an entry into the list
format(*, chain=True) Format the exception. If chain is not True, __cause__
sys.base_prefix Set during Python startup, before site.py is run, to the same value as prefix. If
gc.garbage A list of objects which the collector found to be unreachable but could not be freed (uncollectable objects). Starting
Page 5 of 26