MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / add

Method add

tools/python-3.11.9-amd64/Lib/mailbox.py:1252–1257  ·  view source on GitHub ↗

Add message and return assigned key.

(self, message)

Source from the content-addressed store, hash-verified

1250 self._labels = {}
1251
1252 def add(self, message):
1253 """Add message and return assigned key."""
1254 key = _singlefileMailbox.add(self, message)
1255 if isinstance(message, BabylMessage):
1256 self._labels[key] = message.get_labels()
1257 return key
1258
1259 def remove(self, key):
1260 """Remove the keyed message; raise KeyError if it doesn't exist."""

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
get_labelsMethod · 0.45

Tested by

no test coverage detected