warnings
index
/usr/local/lib/python2.3/warnings.py

Python part of the warnings subsystem.

 
Modules
       
linecache
sys
types

 
Functions
       
filterwarnings(action, message='', category=<class exceptions.Warning>, module='', lineno=0, append=0)
Insert an entry into the list of warnings filters (at the front).
 
Use assertions to check that all arguments have the right type.
formatwarning(message, category, filename, lineno)
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, file=None)
Hook to write a warning to a file; replace if you like.
simplefilter(action, category=<class 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.
warn(message, category=None, stacklevel=1)
Issue a warning, or maybe ignore it or raise an exception.
warn_explicit(message, category, filename, lineno, module=None, registry=None)

 
Data
        __all__ = ['warn', 'showwarning', 'formatwarning', 'filterwarnings', 'resetwarnings']
defaultaction = 'default'
filters = [('ignore', <_sre.SRE_Pattern object>, <class exceptions.DeprecationWarning>, <_sre.SRE_Pattern object>, 0), ('ignore', <_sre.SRE_Pattern object>, <class exceptions.RuntimeWarning>, <_sre.SRE_Pattern object>, 0), ('ignore', None, <class exceptions.OverflowWarning>, None, 0), ('ignore', None, <class exceptions.PendingDeprecationWarning>, None, 0), ('ignore', <_sre.SRE_Pattern object>, <class exceptions.DeprecationWarning>, <_sre.SRE_Pattern object>, 0)]
onceregistry = {}