MCPcopy Index your code
hub / github.com/RustPython/RustPython / pop

Method pop

Lib/mailbox.py:148–155  ·  view source on GitHub ↗

Delete the keyed message and return it, or default.

(self, key, default=None)

Source from the content-addressed store, hash-verified

146 self.discard(key)
147
148 def pop(self, key, default=None):
149 """Delete the keyed message and return it, or default."""
150 try:
151 result = self[key]
152 except KeyError:
153 return default
154 self.discard(key)
155 return result
156
157 def popitem(self):
158 """Delete an arbitrary (key, message) pair and return it."""

Callers 15

popitemMethod · 0.95
test_notimplementedMethod · 0.95
_get_tagged_responseMethod · 0.45
_untagged_responseMethod · 0.45
__enter__Method · 0.45
__exit__Method · 0.45
_popMethod · 0.45
walkFunction · 0.45
fwalkFunction · 0.45
_fwalkFunction · 0.45
disFunction · 0.45

Calls 1

discardMethod · 0.95

Tested by 5

test_notimplementedMethod · 0.76
runMethod · 0.36
script_from_examplesFunction · 0.36
generate_slicesFunction · 0.36
test_popFunction · 0.36