MCPcopy Index your code
hub / github.com/python/cpython / __setitem__

Method __setitem__

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

1344 del self._labels[key]
1345
1346 def __setitem__(self, key, message):
1347 """Replace the keyed message; raise KeyError if it doesn't exist."""
1348 _singlefileMailbox.__setitem__(self, key, message)
1349 if isinstance(message, BabylMessage):
1350 self._labels[key] = message.get_labels()
1351
1352 def get_message(self, key):
1353 """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