warnings
index
/usr/lib/python2.2/warnings.py

Python part of the warnings subsystem.

 
Modules
            
re
sys
types
 
Classes
            
exceptions.Exception
_OptionError
 
class _OptionError(exceptions.Exception)
      Exception used by option processing helpers.
 
   Data and non-method functions defined here:
__doc__ = 'Exception used by option processing helpers.'
__module__ = 'warnings'

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)
 
Functions
            
_getaction(action)
# Helper for _setoption()
_getcategory(category)
# Helper for _setoption()
_processoptions(args)
# Helper to process -W options passed via sys.warnoptions
_setoption(arg)
# Helper for _processoptions()
_test()
# Self-test
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()
Reset the list of warnings filters to its default state.
showwarning(message, category, filename, lineno, file=None)
Hook to write a warning to a file; replace if you like.
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']
__file__ = '/usr/lib/python2.2/warnings.pyc'
__name__ = 'warnings'
defaultaction = 'default'
filters = [('ignore', <_sre.SRE_Pattern object>, <class exceptions.DeprecationWarning>, <_sre.SRE_Pattern object>, 0), ('ignore', <_sre.SRE_Pattern object>, <class exceptions.OverflowWarning>, <_sre.SRE_Pattern object>, 0), ('ignore', <_sre.SRE_Pattern object>, <class exceptions.DeprecationWarning>, <_sre.SRE_Pattern object>, 0)]
onceregistry = {}