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

Method add

Lib/mailbox.py:49–51  ·  view source on GitHub ↗

Add message and return assigned key.

(self, message)

Source from the content-addressed store, hash-verified

47 self.close()
48
49 def add(self, message):
50 """Add message and return assigned key."""
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."""

Callers 1

test_notimplementedMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_notimplementedMethod · 0.76