summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-03-19 12:38:03 +0000
committerMark Dickinson <dickinsm@gmail.com>2010-03-19 12:38:03 +0000
commit03b168d2d52637d68587d9dd3ecb11e9c78d1a83 (patch)
tree002bed9a40487fbe36eeae898df8bfb58c0170d2 /Objects
parentba9b2b205784cec187a6be978391ffd776a22707 (diff)
downloadcpython-03b168d2d52637d68587d9dd3ecb11e9c78d1a83.tar.gz
Remove out-of-date comment about making ints and longs hash equal.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/longobject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index d182e7ce30..781e34f99d 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];