Lines Matching refs:self
13 Custom_dealloc(CustomObject *self)
15 Py_XDECREF(self->first);
16 Py_XDECREF(self->last);
17 Py_TYPE(self)->tp_free((PyObject *) self);
23 CustomObject *self;
24 self = (CustomObject *) type->tp_alloc(type, 0);
25 if (self != NULL) {
26 self->first = PyUnicode_FromString("");
27 if (self->first == NULL) {
28 Py_DECREF(self);
31 self->last = PyUnicode_FromString("");
32 if (self->last == NULL) {
33 Py_DECREF(self);
36 self->number = 0;
38 return (PyObject *) self;
42 Custom_init(CustomObject *self, PyObject *args, PyObject *kwds)
49 &self->number))
53 tmp = self->first;
55 self->first = first;
59 tmp = self->last;
61 self->last = last;
78 Custom_name(CustomObject *self, PyObject *Py_UNUSED(ignored))
80 if (self->first == NULL) {
84 if (self->last == NULL) {
88 return PyUnicode_FromFormat("%S %S", self->first, self->last);