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

Method __setitem__

Lib/mailbox.py:1339–1343  ·  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

1337 del self._labels[key]
1338
1339 def __setitem__(self, key, message):
1340 """Replace the keyed message; raise KeyError if it doesn't exist."""
1341 _singlefileMailbox.__setitem__(self, key, message)
1342 if isinstance(message, BabylMessage):
1343 self._labels[key] = message.get_labels()
1344
1345 def get_message(self, key):
1346 """Return a Message representation or raise a KeyError."""

Callers

nothing calls this directly

Calls 3

isinstanceFunction · 0.85
__setitem__Method · 0.45
get_labelsMethod · 0.45

Tested by

no test coverage detected