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

Method popitem

Lib/mailbox.py:157–162  ·  view source on GitHub ↗

Delete an arbitrary (key, message) pair and return it.

(self)

Source from the content-addressed store, hash-verified

155 return result
156
157 def popitem(self):
158 """Delete an arbitrary (key, message) pair and return it."""
159 for key in self.iterkeys():
160 return (key, self.pop(key)) # This is only run once.
161 else:
162 raise KeyError('No messages in mailbox')
163
164 def update(self, arg=None):
165 """Change the messages that correspond to certain keys."""

Callers 2

test_notimplementedMethod · 0.95
builtin_dict.pyFile · 0.45

Calls 2

iterkeysMethod · 0.95
popMethod · 0.95

Tested by 1

test_notimplementedMethod · 0.76