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

Method _wrap

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

Source from the content-addressed store, hash-verified

138 #---- 'private' methods --------------------------------------------------
139
140 def _wrap(self, item):
141 if self._key is not None:
142 item = (self._key(item),item)
143 return item
144
145 def _unwrap(self, item):
146 if self._key is not None:

Callers 3

pushMethod · 0.95
replaceMethod · 0.95
__setitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected