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

Method add

Lib/mailbox.py:1326–1331  ·  view source on GitHub ↗

Add message and return assigned key.

(self, message)

Source from the content-addressed store, hash-verified

1324 self._labels = {}
1325
1326 def add(self, message):
1327 """Add message and return assigned key."""
1328 key = _singlefileMailbox.add(self, message)
1329 if isinstance(message, BabylMessage):
1330 self._labels[key] = message.get_labels()
1331 return key
1332
1333 def remove(self, key):
1334 """Remove the keyed message; raise KeyError if it doesn't exist."""

Callers

nothing calls this directly

Calls 3

isinstanceFunction · 0.85
addMethod · 0.45
get_labelsMethod · 0.45

Tested by

no test coverage detected