Lines Matching defs:lst
30 PyObject *lst;
44 Py_CLEAR(self->lst);
70 Py_VISIT(self->lst);
91 self->lst = PyList_New(0);
99 if (self->lst == NULL) {
127 if (PyList_Append(self->lst, item) < 0)
162 n = PyList_GET_SIZE(self->lst);
165 item = PyList_GET_ITEM(self->lst, self->lst_pos);
167 PyList_SET_ITEM(self->lst, self->lst_pos, Py_None);
172 if (PyList_SetSlice(self->lst, 0, self->lst_pos, NULL)) {
175 PyList_SET_ITEM(self->lst, self->lst_pos, item);
247 while (self->lst_pos == PyList_GET_SIZE(self->lst)) {
277 assert(self->lst_pos < PyList_GET_SIZE(self->lst));
318 return self->lst_pos == PyList_GET_SIZE(self->lst);
331 return PyList_GET_SIZE(self->lst) - self->lst_pos;