warnings filter?

rob at encodia.biz rob at encodia.biz
Thu Jul 8 10:10:50 EDT 2004


In Python 2.3, this code still prints a warning (when run as a script,
not from the interpreter).  How do I get rid of the warning?  I'd like
to do it without passing command line args to python.

import warnings
warnings.filterwarnings('ignore')
a = 0xffffffff


Thanks,
Rob



More information about the Python-list mailing list