mirror of https://github.com/python/cpython.git
bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION (GH-27202)
(cherry picked from commit ddf8ae31a0
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
This commit is contained in:
parent
153365d864
commit
c48720576d
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue