Lines Matching defs:item
6 "heappush($module, heap, item, /)\n"
9 "Push item onto heap, maintaining the heap invariant.");
15 _heapq_heappush_impl(PyObject *module, PyObject *heap, PyObject *item);
22 PyObject *item;
32 item = args[1];
33 return_value = _heapq_heappush_impl(module, heap, item);
43 "Pop the smallest item off the heap, maintaining the heap invariant.");
69 "heapreplace($module, heap, item, /)\n"
72 "Pop and return the current smallest value, and add the new item.\n"
76 "returned may be larger than item! That constrains reasonable uses of\n"
79 " if item > heap[0]:\n"
80 " item = heapreplace(heap, item)");
86 _heapq_heapreplace_impl(PyObject *module, PyObject *heap, PyObject *item);
93 PyObject *item;
103 item = args[1];
104 return_value = _heapq_heapreplace_impl(module, heap, item);
111 "heappushpop($module, heap, item, /)\n"
114 "Push item on the heap, then pop and return the smallest item from the heap.\n"
123 _heapq_heappushpop_impl(PyObject *module, PyObject *heap, PyObject *item);
130 PyObject *item;
140 item = args[1];
141 return_value = _heapq_heappushpop_impl(module, heap, item);
206 "_heapreplace_max($module, heap, item, /)\n"
216 PyObject *item);
223 PyObject *item;
233 item = args[1];
234 return_value = _heapq__heapreplace_max_impl(module, heap, item);