warnings

John Hunter jdhunter at ace.bsd.uchicago.edu
Thu Apr 15 08:45:16 EDT 2004


In the following

import warnings
warnings.warn('change me')

The warning is issued:

hunter:~/python/test> python test.py
test.py:3: UserWarning: change me
  warnings.warn('change me')


I want to supress the line echo.  Eg, I just want

hunter:~/python/test> python test.py
test.py:3: UserWarning: change me


How do I configure warnings to do this?

Thanks!
John Hunter




More information about the Python-list mailing list