PyDocs

Nav

Python Runtime Services

simplefilter

warnings

function (source)
  • simplefilter(action, category=Warning, lineno=0, append=False)
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", "all", "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
0 Examples
No examples for warnings/simplefilter.
See Also
No see-alsos for warnings/simplefilter
0 Notes
No notes for simplefilter