Lines Matching defs:item
110 item: object
114 Put the item on the queue.
122 _queue_SimpleQueue_put_impl(simplequeueobject *self, PyObject *item,
127 if (PyList_Append(self->lst, item) < 0)
140 item: object
142 Put an item into the queue without blocking.
144 This is exactly equivalent to `put(item)` and is only provided
150 _queue_SimpleQueue_put_nowait_impl(simplequeueobject *self, PyObject *item)
153 return _queue_SimpleQueue_put_impl(self, item, 0, Py_None);
160 PyObject *item;
165 item = PyList_GET_ITEM(self->lst, self->lst_pos);
175 PyList_SET_ITEM(self->lst, self->lst_pos, item);
180 return item;
191 Remove and return an item from the queue.
194 block if necessary until an item is available. If 'timeout' is
196 the Empty exception if no item was available within that time.
197 Otherwise ('block' is false), return an item if one is immediately
210 PyObject *item;
278 item = simplequeue_pop_item(self);
285 return item;
294 Remove and return an item from the queue without blocking.
296 Only get an item if one is immediately available. Otherwise