Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit83809ba

Browse files
Remove call_attribute
1 parent59139a1 commit83809ba

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

‎Objects/typeobject.c‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7782,24 +7782,6 @@ slot_tp_getattro(PyObject *self, PyObject *name)
77827782
returnvectorcall_method(&_Py_ID(__getattribute__),stack,2);
77837783
}
77847784

7785-
staticPyObject*
7786-
call_attribute(PyObject*self,PyObject*attr,PyObject*name)
7787-
{
7788-
PyObject*res,*descr=NULL;
7789-
descrgetfuncf=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-
returnNULL;
7795-
else
7796-
attr=descr;
7797-
}
7798-
res=PyObject_CallOneArg(attr,name);
7799-
Py_XDECREF(descr);
7800-
returnres;
7801-
}
7802-
78037785
staticPyObject*
78047786
slot_tp_getattr_hook(PyObject*self,PyObject*name)
78057787
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp