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

Method discard

Lib/_collections_abc.py:710–712  ·  view source on GitHub ↗

Remove an element. Do not raise an exception if absent.

(self, value)

Source from the content-addressed store, hash-verified

708
709 @abstractmethod
710 def discard(self, value):
711 """Remove an element. Do not raise an exception if absent."""
712 raise NotImplementedError
713
714 def remove(self, value):
715 """Remove an element. If not a member, raise a KeyError."""

Callers 5

removeMethod · 0.95
popMethod · 0.95
__iand__Method · 0.95
__ixor__Method · 0.95
__isub__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected