class warnings.catch_warnings(*, record=False, module=None) A context manager that copies and, upon exit, restores the warnings
sys.intern(string) Enter string in the table of “interned” strings and return the interned string – which is string
gc.enable() Enable automatic garbage collection.
atexit.unregister(func) Remove func from the list of functions to be run at interpreter shutdown. After calling
classmethod extract(frame_gen, *, limit=None, lookup_lines=True, capture_locals=False) Construct a StackSummary
classmethod from_exception(exc, *, limit=None, lookup_lines=True, capture_locals=False) Capture an exception for later rendering
contextlib.redirect_stdout(new_target) Context manager for temporarily redirecting
warnings.warn(message, category=None, stacklevel=1) Issue a warning, or maybe ignore it or raise an exception. The category
sys.set_coroutine_wrapper(wrapper) Allows intercepting creation of coroutine objects
bind(*args, **kwargs) Create a mapping from positional and keyword arguments to parameters. Returns BoundArguments
Page 24 of 26