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

Method __setitem__

Lib/mailbox.py:67–69  ·  view source on GitHub ↗

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

(self, key, message)

Source from the content-addressed store, hash-verified

65 pass
66
67 def __setitem__(self, key, message):
68 """Replace the keyed message; raise KeyError if it doesn't exist."""
69 raise NotImplementedError('Method must be implemented by subclass')
70
71 def get(self, key, default=None):
72 """Return the keyed message, or default if it doesn't exist."""

Callers 1

test_notimplementedMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_notimplementedMethod · 0.76