Lines Matching defs:self
28 XxoObject *self;
29 self = PyObject_GC_New(XxoObject, (PyTypeObject*)Xxo_Type);
30 if (self == NULL)
32 self->x_attr = NULL;
33 return self;
39 Xxo_traverse(XxoObject *self, visitproc visit, void *arg)
41 Py_VISIT(Py_TYPE(self));
42 Py_VISIT(self->x_attr);
47 Xxo_clear(XxoObject *self)
49 Py_CLEAR(self->x_attr);
54 Xxo_finalize(XxoObject *self)
56 Py_CLEAR(self->x_attr);
60 Xxo_demo(XxoObject *self, PyObject *args)
81 Xxo_getattro(XxoObject *self, PyObject *name)
83 if (self->x_attr != NULL) {
84 PyObject *v = PyDict_GetItemWithError(self->x_attr, name);
93 return PyObject_GenericGetAttr((PyObject *)self, name);
97 Xxo_setattr(XxoObject *self, const char *name, PyObject *v)
99 if (self->x_attr == NULL) {
100 self->x_attr = PyDict_New();
101 if (self->x_attr == NULL)
105 int rv = PyDict_DelItemString(self->x_attr, name);
112 return PyDict_SetItemString(self->x_attr, name, v);
144 xx_foo(PyObject *self, PyObject *args)
158 xx_new(PyObject *self, PyObject *args)
173 xx_roj(PyObject *self, PyObject *args)
202 null_richcompare(PyObject *self, PyObject *other, int op)