MCPcopy Create free account
hub / github.com/ActiveState/code / remove

Method remove

recipes/Python/52258_a_Set_class_for_python/recipe-52258.py:23–25  ·  view source on GitHub ↗

Remove an item from the set.

(self, item)

Source from the content-addressed store, hash-verified

21 self._dict[item] = item
22
23 def remove(self, item):
24 """Remove an item from the set."""
25 del self._dict[item]
26
27 def contains(self, item):
28 """Check whether the set contains a certain item."""

Callers 5

_deleteOldRevisionsMethod · 0.45
mainFunction · 0.45
recipe-52219.pyFile · 0.45
unknown_endtagMethod · 0.45
__delitem__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected