Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
20
class
Item:
Callers
11
example.py
File · 0.45
unserialize_object
Function · 0.45
parse_and_remove
Function · 0.45
visit
Method · 0.45
visit
Method · 0.45
__exit__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
remove_meta
Function · 0.45
__exit__
Method · 0.45
_iopoll
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected