[Python-checkins] r79092 - python/branches/py3k/Objects/longobject.c

mark.dickinson python-checkins at python.org
Fri Mar 19 13:38:04 CET 2010


Author: mark.dickinson
Date: Fri Mar 19 13:38:03 2010
New Revision: 79092

Log:
Remove out-of-date comment about making ints and longs hash equal.

Modified:
   python/branches/py3k/Objects/longobject.c

Modified: python/branches/py3k/Objects/longobject.c
==============================================================================
--- python/branches/py3k/Objects/longobject.c	(original)
+++ python/branches/py3k/Objects/longobject.c	Fri Mar 19 13:38:03 2010
@@ -2560,9 +2560,6 @@
 	Py_ssize_t i;
 	int sign;
 
-	/* This is designed so that Python ints and longs with the
-	   same value hash to the same value, otherwise comparisons
-	   of mapping keys will turn out weird */
 	i = Py_SIZE(v);
 	switch(i) {
 	case -1: return v->ob_digit[0]==1 ? -2 : -(sdigit)v->ob_digit[0];


More information about the Python-checkins mailing list