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

Method __setitem__

tools/python-3.11.9-amd64/Lib/mailbox.py:1265–1269  ·  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

1263 del self._labels[key]
1264
1265 def __setitem__(self, key, message):
1266 """Replace the keyed message; raise KeyError if it doesn't exist."""
1267 _singlefileMailbox.__setitem__(self, key, message)
1268 if isinstance(message, BabylMessage):
1269 self._labels[key] = message.get_labels()
1270
1271 def get_message(self, key):
1272 """Return a Message representation or raise a KeyError."""

Callers

nothing calls this directly

Calls 2

__setitem__Method · 0.45
get_labelsMethod · 0.45

Tested by

no test coverage detected