warnings

Python part of the warnings subsystem.

Functions

filterwarnings(action[, message, category, ...]) Insert an entry into the list of warnings filters (at the front).
formatwarning(message, category, filename, ...) Function to format a warning the standard way.
resetwarnings() Clear the list of warning filters, so that no filters are active.
showwarning(message, category, filename, lineno) Hook to write a warning to a file; replace if you like.
simplefilter(action[, category, lineno, append]) Insert a simple entry into the list of warnings filters (at the front).
warn Issue a warning, or maybe ignore it or raise an exception.
warn_explicit Low-level inferface to warnings functionality.
warnpy3k(message[, category, stacklevel]) Issue a deprecation warning for Python 3.x related changes.

Classes

WarningMessage(message, category, filename, ...) Holds the result of a single showwarning() call.
catch_warnings([record, module]) A context manager that copies and restores the warnings filter upon exiting the context.