Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59139a1 commit 83809baCopy full SHA for 83809ba
Objects/typeobject.c
@@ -7782,24 +7782,6 @@ slot_tp_getattro(PyObject *self, PyObject *name)
7782
return vectorcall_method(&_Py_ID(__getattribute__), stack, 2);
7783
}
7784
7785
-static PyObject *
7786
-call_attribute(PyObject *self, PyObject *attr, PyObject *name)
7787
-{
7788
- PyObject *res, *descr = NULL;
7789
- descrgetfunc f = Py_TYPE(attr)->tp_descr_get;
7790
-
7791
- if (f != NULL) {
7792
- descr = f(attr, self, (PyObject *)(Py_TYPE(self)));
7793
- if (descr == NULL)
7794
- return NULL;
7795
- else
7796
- attr = descr;
7797
- }
7798
- res = PyObject_CallOneArg(attr, name);
7799
- Py_XDECREF(descr);
7800
- return res;
7801
-}
7802
7803
static PyObject *
7804
slot_tp_getattr_hook(PyObject *self, PyObject *name)
7805
{
0 commit comments