enter_context(cm) Enters a new context manager and adds its __exit__() method to the callback stack. The return
sys.prefix A string giving the site-specific directory prefix where the platform independent Python files are installed; by
warnings.simplefilter(action, category=Warning, lineno=0, append=False) Insert a simple entry into the list of warnings
traceback.print_tb(tb, limit=None, file=None) Print up to limit stack trace entries from traceback object tb
fpectl.turnoff_sigfpe() Reset default handling of floating point exceptions.
traceback.format_exception_only(etype, value) Format the exception part of a traceback. The arguments are the exception type
sys.getallocatedblocks() Return the number of memory blocks currently allocated by the interpreter, regardless of their size
class traceback.FrameSummary(filename, lineno, name, lookup_line=True, locals=None, line=None) Represent a single frame in the
traceback.format_list(extracted_list) Given a list of tuples as returned by extract_tb() or extract_stack()
sys.getdefaultencoding() Return the name of the current default string encoding used by the Unicode implementation.
Page 2 of 26