Home | History | Annotate | Download | only in python2.7

Lines Matching refs:newitem

243     newitem = heap[pos]
245 # newitem fits.
249 if cmp_lt(newitem, parent):
254 heap[pos] = newitem
261 # We *could* break out of the loop as soon as we find a pos where newitem <=
298 newitem = heap[pos]
310 # The leaf at pos is empty now. Put newitem there, and bubble it up
312 heap[pos] = newitem
317 newitem = heap[pos]
319 # newitem fits.
323 if cmp_lt(parent, newitem):
328 heap[pos] = newitem
334 newitem = heap[pos]
346 # The leaf at pos is empty now. Put newitem there, and bubble it up
348 heap[pos] = newitem