]> granicus.if.org Git - python/commitdiff
Remove out-of-date comment about making ints and longs hash equal.
authorMark Dickinson <dickinsm@gmail.com>
Fri, 19 Mar 2010 12:38:03 +0000 (12:38 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Fri, 19 Mar 2010 12:38:03 +0000 (12:38 +0000)
Objects/longobject.c

index d182e7ce30e458328fec28f6e7f142610b0da2f3..781e34f99dda3a2b41748ebfeb6a668b4ac28d15 100644 (file)
@@ -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];