mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Remove out-of-date comment about making ints and longs hash equal.
This commit is contained in:
parent
f1789dee30
commit
431065247a
1 changed files with 0 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue