summaryrefslogtreecommitdiffstats
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-03-19 12:38:03 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-03-19 12:38:03 (GMT)
commit431065247a3ef0051d30d90ba4910f14303b401c (patch)
tree260aa065c41e6f7bf9314dbd0e5fa577c8bcf780 /Objects/longobject.c
parentf1789dee30f36cfdc2150c91a1fddb756dbd670d (diff)
downloadcpython-431065247a3ef0051d30d90ba4910f14303b401c.zip
cpython-431065247a3ef0051d30d90ba4910f14303b401c.tar.gz
cpython-431065247a3ef0051d30d90ba4910f14303b401c.tar.bz2
Remove out-of-date comment about making ints and longs hash equal.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index d182e7c..781e34f 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -2560,9 +2560,6 @@ long_hash(PyLongObject *v)
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];