Lines Matching refs:lst
19 PyObject *lst; member
35 Py_XDECREF(self->lst); in simplequeue_dealloc()
44 Py_VISIT(self->lst); in simplequeue_traverse()
64 self->lst = PyList_New(0); in simplequeue_new_impl()
72 if (self->lst == NULL) { in simplequeue_new_impl()
100 if (PyList_Append(self->lst, item) < 0) in _queue_SimpleQueue_put_impl()
135 n = PyList_GET_SIZE(self->lst); in simplequeue_pop_item()
138 item = PyList_GET_ITEM(self->lst, self->lst_pos); in simplequeue_pop_item()
140 PyList_SET_ITEM(self->lst, self->lst_pos, Py_None); in simplequeue_pop_item()
145 if (PyList_SetSlice(self->lst, 0, self->lst_pos, NULL)) { in simplequeue_pop_item()
148 PyList_SET_ITEM(self->lst, self->lst_pos, item); in simplequeue_pop_item()
216 while (self->lst_pos == PyList_GET_SIZE(self->lst)) { in _queue_SimpleQueue_get_impl()
240 assert(self->lst_pos < PyList_GET_SIZE(self->lst)); in _queue_SimpleQueue_get_impl()
277 return self->lst_pos == PyList_GET_SIZE(self->lst); in _queue_SimpleQueue_empty_impl()
290 return PyList_GET_SIZE(self->lst) - self->lst_pos; in _queue_SimpleQueue_qsize_impl()