supressing warning message?

Jeff Epler jepler at unpythonic.net
Wed Jul 28 21:37:58 EDT 2004


While I haven't tested this to be sure, "RuntimeWarning" suggests that
this message is coming from the regular warnings machinery.  Routines in
the "warnings" module let you silence these warnings.

http://docs.python.org/lib/module-warnings.html

Here's a brute-force way to silence all warnings:
    import warnings; warnings.filterwarnings('ignore')
you might want to use something a little more targeted.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20040728/6484a695/attachment.sig>


More information about the Python-list mailing list