MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __delitem__

Method __delitem__

example_code/item_025.py:126–127  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

124 self.data[key] = value
125
126 def __delitem__(self, key):
127 del self.data[key]
128
129 def __iter__(self):
130 keys = list(self.data.keys())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected