MCPcopy
hub / github.com/celery/celery / pop

Method pop

celery/utils/collections.py:228–234  ·  view source on GitHub ↗
(self, key, *default)

Source from the content-addressed store, hash-verified

226 self.maps.insert(1, d)
227
228 def pop(self, key, *default):
229 # type: (Any, *Any) -> Any
230 try:
231 return self.maps[0].pop(key, *default)
232 except KeyError:
233 raise KeyError(
234 f'Key not found in the first mapping: {key!r}')
235
236 def __missing__(self, key):
237 # type: (Any) -> Any

Callers 4

move_to_endMethod · 0.45
discardMethod · 0.45
popMethod · 0.45
_pop_to_evictMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected