From 32596523ed6c65e1b8b4717b4780b615c83dfecf Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 18 Feb 2009 23:12:48 +0000 Subject: Py3k warnings now automatically include -Qwarn for division. --- Misc/NEWS | 3 +++ Modules/main.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Misc/NEWS b/Misc/NEWS index 2ebd6cc..f95da43 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -12,6 +12,9 @@ What's New in Python 2.6.2 Core and Builtins ----------------- +- Running Python with the -3 option now also warns about classic division + for ints and longs. + - Issue #5013: Fixed a bug in FileHandler which occurred when the delay parameter was set. diff --git a/Modules/main.c b/Modules/main.c index 6ed2cd7..1a58071 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -317,6 +317,8 @@ Py_Main(int argc, char **argv) case '3': Py_Py3kWarningFlag++; + if (!Py_DivisionWarningFlag) + Py_DivisionWarningFlag = 1; break; case 'Q': -- cgit v0.12