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

Method remove

Lib/mailbox.py:672–676  ·  view source on GitHub ↗

Remove the keyed message; raise KeyError if it doesn't exist.

(self, key)

Source from the content-addressed store, hash-verified

670 return self._next_key - 1
671
672 def remove(self, key):
673 """Remove the keyed message; raise KeyError if it doesn't exist."""
674 self._lookup(key)
675 del self._toc[key]
676 self._pending = True
677
678 def __setitem__(self, key, message):
679 """Replace the keyed message; raise KeyError if it doesn't exist."""

Callers

nothing calls this directly

Calls 1

_lookupMethod · 0.95

Tested by

no test coverage detected