MCPcopy
hub / github.com/django/django / discard

Method discard

django/utils/datastructures.py:19–23  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

17 del self.dict[item]
18
19 def discard(self, item):
20 try:
21 self.remove(item)
22 except KeyError:
23 pass
24
25 def __iter__(self):
26 return iter(self.dict)

Callers 6

process_rhsMethod · 0.95
test_discardMethod · 0.95
__setattr__Method · 0.80
prep_addressMethod · 0.80
as_stringMethod · 0.80
combineMethod · 0.80

Calls 1

removeMethod · 0.95

Tested by 1

test_discardMethod · 0.76