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

Method remove

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

663 return self._next_key - 1
664
665 def remove(self, key):
666 """Remove the keyed message; raise KeyError if it doesn't exist."""
667 self._lookup(key)
668 del self._toc[key]
669 self._pending = True
670
671 def __setitem__(self, key, message):
672 """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