Browse Source
bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION (GH-27202)
pull/27415/head
Dong-hee Na
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
Objects/classobject.c
|
|
|
@ -462,7 +462,7 @@ instancemethod_traverse(PyObject *self, visitproc visit, void *arg) { |
|
|
|
static PyObject * |
|
|
|
instancemethod_call(PyObject *self, PyObject *arg, PyObject *kw) |
|
|
|
{ |
|
|
|
return PyObject_Call(PyMethod_GET_FUNCTION(self), arg, kw); |
|
|
|
return PyObject_Call(PyInstanceMethod_GET_FUNCTION(self), arg, kw); |
|
|
|
} |
|
|
|
|
|
|
|
static PyObject * |
|
|
|
|