Lines Matching refs:self
11 local variables other than 'self'. If your object type is needed in
33 XxoObject *self;
34 self = PyObject_New(XxoObject, &Xxo_Type);
35 if (self == NULL)
37 self->x_attr = NULL;
38 return self;
44 Xxo_dealloc(XxoObject *self)
46 Py_XDECREF(self->x_attr);
47 PyObject_Free(self);
51 Xxo_demo(XxoObject *self, PyObject *args)
66 Xxo_getattro(XxoObject *self, PyObject *name)
68 if (self->x_attr != NULL) {
69 PyObject *v = PyDict_GetItemWithError(self->x_attr, name);
78 return PyObject_GenericGetAttr((PyObject *)self, name);
82 Xxo_setattr(XxoObject *self, const char *name, PyObject *v)
84 if (self->x_attr == NULL) {
85 self->x_attr = PyDict_New();
86 if (self->x_attr == NULL)
90 int rv = PyDict_DelItemString(self->x_attr, name);
97 return PyDict_SetItemString(self->x_attr, name, v);
155 xx_foo(PyObject *self, PyObject *args)
169 xx_new(PyObject *self, PyObject *args)
184 xx_bug(PyObject *self, PyObject *args)
205 xx_roj(PyObject *self, PyObject *args)
267 null_richcompare(PyObject *self, PyObject *other, int op)