Lines Matching refs:self
48 PyObject *self = PyMethod_GET_SELF(method);
58 newargs[0] = self;
67 return _PyObject_VectorcallTstate(tstate, func, &self, 1, NULL);
83 newargs[0] = self;
105 PyMethod_New(PyObject *func, PyObject *self)
107 if (self == NULL) {
118 Py_INCREF(self);
119 im->im_self = self;
130 method___reduce___impl(PyMethodObject *self)
133 PyObject *funcself = PyMethod_GET_SELF(self);
134 PyObject *func = PyMethod_GET_FUNCTION(self);
246 method_richcompare(PyObject *self, PyObject *other, int op)
253 !PyMethod_Check(self) ||
258 a = (PyMethodObject *)self;
277 PyObject *self = a->im_self;
296 funcname, defname, self);
387 instancemethod_get_doc(PyObject *self, void *context)
389 return PyObject_GetAttr(PyInstanceMethod_GET_FUNCTION(self),
399 instancemethod_getattro(PyObject *self, PyObject *name)
401 PyTypeObject *tp = Py_TYPE(self);
413 return f(descr, self, (PyObject *)Py_TYPE(self));
420 return PyObject_GetAttr(PyInstanceMethod_GET_FUNCTION(self), name);
424 instancemethod_dealloc(PyObject *self) {
425 _PyObject_GC_UNTRACK(self);
426 Py_DECREF(PyInstanceMethod_GET_FUNCTION(self));
427 PyObject_GC_Del(self);
431 instancemethod_traverse(PyObject *self, visitproc visit, void *arg) {
432 Py_VISIT(PyInstanceMethod_GET_FUNCTION(self));
437 instancemethod_call(PyObject *self, PyObject *arg, PyObject *kw)
439 return PyObject_Call(PyInstanceMethod_GET_FUNCTION(self), arg, kw);
454 instancemethod_richcompare(PyObject *self, PyObject *other, int op)
461 !PyInstanceMethod_Check(self) ||
466 a = (PyInstanceMethodObject *)self;
480 instancemethod_repr(PyObject *self)
482 PyObject *func = PyInstanceMethod_Function(self);
500 funcname, defname, self);