MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / __delitem__

Method __delitem__

python/bplustree/bplus_tree.py:255–259  ·  view source on GitHub ↗

Delete a key (dict-like API)

(self, key: Any)

Source from the content-addressed store, hash-verified

253 return len(self) > 0
254
255 def __delitem__(self, key: Any) -> None:
256 """Delete a key (dict-like API)"""
257 deleted = self._delete_recursive(self.root, key)
258 if not deleted:
259 raise KeyError(key)
260
261 def _delete_recursive(self, node: "Node", key: Any) -> bool:
262 """

Callers

nothing calls this directly

Calls 1

_delete_recursiveMethod · 0.95

Tested by

no test coverage detected