Python part of the warnings subsystem.
Functions
filterwarnings(action[, message, category, …])
filterwarnings
Insert an entry into the list of warnings filters (at the front).
formatwarning(message, category, filename, …)
formatwarning
Function to format a warning the standard way.
resetwarnings()
resetwarnings
Clear the list of warning filters, so that no filters are active.
showwarning(message, category, filename, lineno)
showwarning
Hook to write a warning to a file; replace if you like.
simplefilter(action[, category, lineno, append])
simplefilter
Insert a simple entry into the list of warnings filters (at the front).
Classes
WarningMessage(message, category, filename, …)
WarningMessage
catch_warnings(*[, record, module])
catch_warnings
A context manager that copies and restores the warnings filter upon exiting the context.