mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-46920: Remove code that has no explainer why it was disabled (GH-31814)
This commit is contained in:
parent
11c25b87ae
commit
e885ac3d5f
2 changed files with 3 additions and 56 deletions
|
@ -516,22 +516,6 @@ instancemethod_repr(PyObject *self)
|
|||
return result;
|
||||
}
|
||||
|
||||
/*
|
||||
static long
|
||||
instancemethod_hash(PyObject *self)
|
||||
{
|
||||
long x, y;
|
||||
x = (long)self;
|
||||
y = PyObject_Hash(PyInstanceMethod_GET_FUNCTION(self));
|
||||
if (y == -1)
|
||||
return -1;
|
||||
x = x ^ y;
|
||||
if (x == -1)
|
||||
x = -2;
|
||||
return x;
|
||||
}
|
||||
*/
|
||||
|
||||
PyDoc_STRVAR(instancemethod_doc,
|
||||
"instancemethod(function)\n\
|
||||
\n\
|
||||
|
@ -569,7 +553,7 @@ PyTypeObject PyInstanceMethod_Type = {
|
|||
0, /* tp_as_number */
|
||||
0, /* tp_as_sequence */
|
||||
0, /* tp_as_mapping */
|
||||
0, /*(hashfunc)instancemethod_hash, tp_hash */
|
||||
0, /* tp_hash */
|
||||
instancemethod_call, /* tp_call */
|
||||
0, /* tp_str */
|
||||
instancemethod_getattro, /* tp_getattro */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue