MCPcopy Create free account
hub / github.com/ActiveState/code / extend

Method extend

recipes/Python/440673_Safe_heap_queue_class/recipe-440673.py:121–126  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

119 self.push(item)
120
121 def extend(self, other):
122 if self._key is not None:
123 other = it.imap(self._wrap, other)
124 push = heapq.heappush; lst = self._lst
125 for item in other:
126 push(lst,item)
127
128 def sort(self):
129 lst = self._lst; pop = heapq.heappop

Callers 2

__init__Method · 0.95
__init__Method · 0.95

Calls 1

imapMethod · 0.45

Tested by

no test coverage detected