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

Method remove

Lib/_collections_abc.py:714–718  ·  view source on GitHub ↗

Remove an element. If not a member, raise a KeyError.

(self, value)

Source from the content-addressed store, hash-verified

712 raise NotImplementedError
713
714 def remove(self, value):
715 """Remove an element. If not a member, raise a KeyError."""
716 if value not in self:
717 raise KeyError(value)
718 self.discard(value)
719
720 def pop(self):
721 """Return the popped value. Raise KeyError if empty."""

Callers

nothing calls this directly

Calls 1

discardMethod · 0.95

Tested by

no test coverage detected