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