Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4310652

Browse files
committed
Remove out-of-date comment about making ints and longs hash equal.
1 parent f1789de commit 4310652

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Objects/longobject.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2560,9 +2560,6 @@ long_hash(PyLongObject *v)
25602560
Py_ssize_t i;
25612561
int sign;
25622562

2563-
/* This is designed so that Python ints and longs with the
2564-
same value hash to the same value, otherwise comparisons
2565-
of mapping keys will turn out weird */
25662563
i = Py_SIZE(v);
25672564
switch(i) {
25682565
case -1: return v->ob_digit[0]==1 ? -2 : -(sdigit)v->ob_digit[0];

0 commit comments

Comments
 (0)