Lines Matching refs:sm_callable
1059 PyObject *sm_callable;
1067 Py_XDECREF(sm->sm_callable);
1075 Py_VISIT(sm->sm_callable);
1083 Py_CLEAR(sm->sm_callable);
1093 if (sm->sm_callable == NULL) {
1098 Py_INCREF(sm->sm_callable);
1099 return sm->sm_callable;
1113 Py_XSETREF(sm->sm_callable, callable);
1115 if (functools_wraps((PyObject *)sm, sm->sm_callable) < 0) {
1125 return PyObject_Call(sm->sm_callable, args, kwargs);
1129 {"__func__", T_OBJECT, offsetof(staticmethod, sm_callable), READONLY},
1130 {"__wrapped__", T_OBJECT, offsetof(staticmethod, sm_callable), READONLY},
1137 int res = _PyObject_IsAbstract(sm->sm_callable);
1157 return PyUnicode_FromFormat("<staticmethod(%R)>", sm->sm_callable);
1229 sm->sm_callable = callable;