From: Guido van Rossum Date: Thu, 23 Aug 2001 03:07:42 +0000 (+0000) Subject: Ignore OverflowWarning by default. To enable the warning, use X-Git-Tag: v2.2a3~376 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acc21d8814cf9f43c12052419cbb25e6570c6b32;p=thirdparty%2FPython%2Fcpython.git Ignore OverflowWarning by default. To enable the warning, use python -Wdefault or python -Wdefault::OverflowWarning --- diff --git a/Lib/warnings.py b/Lib/warnings.py index 243f215065dc..ea68e4c8db2f 100644 --- a/Lib/warnings.py +++ b/Lib/warnings.py @@ -249,3 +249,4 @@ if __name__ == "__main__": _test() else: _processoptions(sys.warnoptions) + filterwarnings("ignore", category=OverflowWarning, append=1)