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

Method pop

recipes/Python/576998_Sorted_dictionary/recipe-576998.py:128–131  ·  view source on GitHub ↗
(self, key, *args, **kwargs)

Source from the content-addressed store, hash-verified

126
127 @dictdoc
128 def pop(self, key, *args, **kwargs):
129 if key in self:
130 del self._sorted_keys[bisect_left(self._sorted_keys, key)]
131 return dict.pop(self, key, *args, **kwargs)
132
133 def popitem(self):
134 '''D.popitem() -> (k, v). Remove and return a (key, value) pair with

Callers 8

gen_edgesMethod · 0.45
popitemMethod · 0.45
mergeMethod · 0.45
test_manipMethod · 0.45
serializeFunction · 0.45
deserializeFunction · 0.45
DFSFunction · 0.45
operatorMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_manipMethod · 0.36