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

Method insert

recipes/Python/440673_Safe_heap_queue_class/recipe-440673.py:116–119  ·  view source on GitHub ↗
(self, pos, item)

Source from the content-addressed store, hash-verified

114 append = push
115
116 def insert(self, pos, item):
117 # ignore the position since it's not certain that it can preserve the
118 # heap invariant
119 self.push(item)
120
121 def extend(self, other):
122 if self._key is not None:

Callers

nothing calls this directly

Calls 1

pushMethod · 0.95

Tested by

no test coverage detected