Lines Matching full:last
7 PyObject *last; /* last name */ member
15 Py_VISIT(self->last); in Custom_traverse()
23 Py_CLEAR(self->last); in Custom_clear()
46 self->last = PyUnicode_FromString(""); in Custom_new()
47 if (self->last == NULL) { in Custom_new()
59 static char *kwlist[] = {"first", "last", "number", NULL}; in Custom_init()
60 PyObject *first = NULL, *last = NULL, *tmp; in Custom_init() local
63 &first, &last, in Custom_init()
73 if (last) { in Custom_init()
74 tmp = self->last; in Custom_init()
75 Py_INCREF(last); in Custom_init()
76 self->last = last; in Custom_init()
116 Py_INCREF(self->last); in Custom_getlast()
117 return self->last; in Custom_getlast()
124 PyErr_SetString(PyExc_TypeError, "Cannot delete the last attribute"); in Custom_setlast()
129 "The last attribute value must be a string"); in Custom_setlast()
133 Py_CLEAR(self->last); in Custom_setlast()
134 self->last = value; in Custom_setlast()
141 {"last", (getter) Custom_getlast, (setter) Custom_setlast,
142 "last name", NULL},
149 return PyUnicode_FromFormat("%S %S", self->first, self->last); in Custom_name()
154 "Return the name, combining the first and last name"