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

Method add

Lib/mailbox.py:42–44  ·  view source on GitHub ↗

Add message and return assigned key.

(self, message)

Source from the content-addressed store, hash-verified

40 self._factory = factory
41
42 def add(self, message):
43 """Add message and return assigned key."""
44 raise NotImplementedError('Method must be implemented by subclass')
45
46 def remove(self, key):
47 """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