| |
- filterwarnings(action, message='', category=<type 'exceptions.Warning'>, module='', lineno=0, append=0)
- Insert an entry into the list of warnings filters (at the front).
'action' -- one of "error", "ignore", "always", "default", "module",
or "once"
'message' -- a regex that the warning message must match
'category' -- a class that the warning must be a subclass of
'module' -- a regex that the module name must match
'lineno' -- an integer line number, 0 matches all warnings
'append' -- if true, append to the list of filters
- formatwarning(message, category, filename, lineno, line=None)
- Function to format a warning the standard way.
- resetwarnings()
- Clear the list of warning filters, so that no filters are active.
- showwarning = _show_warning(message, category, filename, lineno, file=None, line=None)
- Hook to write a warning to a file; replace if you like.
- simplefilter(action, category=<type 'exceptions.Warning'>, lineno=0, append=0)
- Insert a simple entry into the list of warnings filters (at the front).
A simple filter matches all modules and messages.
'action' -- one of "error", "ignore", "always", "default", "module",
or "once"
'category' -- a class that the warning must be a subclass of
'lineno' -- an integer line number, 0 matches all warnings
'append' -- if true, append to the list of filters
- warn(...)
- Issue a warning, or maybe ignore it or raise an exception.
- warn_explicit(...)
- Low-level inferface to warnings functionality.
|