MCPcopy Create free account
hub / github.com/rthalley/dnspython / delete_key

Method delete_key

dns/btree.py:711–716  ·  view source on GitHub ↗

Delete the element matching *key* from the BTree. Returns the matching element or ``None`` if it does not exist.

(self, key: KT)

Source from the content-addressed store, hash-verified

709 return elt
710
711 def delete_key(self, key: KT) -> ET | None:
712 """Delete the element matching *key* from the BTree.
713
714 Returns the matching element or ``None`` if it does not exist.
715 """
716 return self._delete(key, None)
717
718 def delete_exact(self, element: ET) -> ET | None:
719 """Delete *element* from the BTree.

Callers 3

__delitem__Method · 0.80
discardMethod · 0.80
test_nonexistentFunction · 0.80

Calls 1

_deleteMethod · 0.95

Tested by 1

test_nonexistentFunction · 0.64