MCPcopy Index your code
hub / github.com/python/cpython / remove

Method remove

Lib/mailbox.py:53–55  ·  view source on GitHub ↗

Remove the keyed message; raise KeyError if it doesn't exist.

(self, key)

Source from the content-addressed store, hash-verified

51 raise NotImplementedError('Method must be implemented by subclass')
52
53 def remove(self, key):
54 """Remove the keyed message; raise KeyError if it doesn't exist."""
55 raise NotImplementedError('Method must be implemented by subclass')
56
57 def __delitem__(self, key):
58 self.remove(key)

Callers 3

__delitem__Method · 0.95
discardMethod · 0.95
test_notimplementedMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_notimplementedMethod · 0.76