PyDocs

Nav

Python Runtime Services

filterwarnings

warnings

function (source)
  • filterwarnings(action, message='', category=Warning, module='', lineno=0, append=False)
Insert an entry into the list of warnings filters (at the front).

'action' -- one of "error", "ignore", "always", "all", "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
0 Examples
No examples for warnings/filterwarnings.
See Also
No see-alsos for warnings/filterwarnings
0 Notes
No notes for filterwarnings