MCPcopy Create free account
hub / github.com/dabeaz/python-cookbook / pop

Method pop

src/1/implementing_a_priority_queue/example.py:16–17  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 self._index += 1
15
16 def pop(self):
17 return heapq.heappop(self._queue)[-1]
18
19# Example use
20class Item:

Callers 11

example.pyFile · 0.45
unserialize_objectFunction · 0.45
parse_and_removeFunction · 0.45
visitMethod · 0.45
visitMethod · 0.45
__exit__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
remove_metaFunction · 0.45
__exit__Method · 0.45
_iopollMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected