[Python-checkins] r69744 - in python/branches/release26-maint: Misc/NEWS Modules/main.c

raymond.hettinger python-checkins at python.org
Thu Feb 19 00:12:49 CET 2009


Author: raymond.hettinger
Date: Thu Feb 19 00:12:48 2009
New Revision: 69744
Log:
Py3k warnings now automatically include -Qwarn for division.
Modified:
 python/branches/release26-maint/Misc/NEWS
 python/branches/release26-maint/Modules/main.c
Modified: python/branches/release26-maint/Misc/NEWS
==============================================================================
--- python/branches/release26-maint/Misc/NEWS	(original)
+++ python/branches/release26-maint/Misc/NEWS	Thu Feb 19 00:12:48 2009
@@ -12,6 +12,9 @@
 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.
 
Modified: python/branches/release26-maint/Modules/main.c
==============================================================================
--- python/branches/release26-maint/Modules/main.c	(original)
+++ python/branches/release26-maint/Modules/main.c	Thu Feb 19 00:12:48 2009
@@ -317,6 +317,8 @@
 
 		case '3':
 			Py_Py3kWarningFlag++;
+			if (!Py_DivisionWarningFlag)
+				Py_DivisionWarningFlag = 1;
 			break;
 
 		case 'Q':


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /