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

Method delete_exact

dns/btree.py:718–725  ·  view source on GitHub ↗

Delete *element* from the BTree. Returns the matching element or ``None`` if it was not in the BTree.

(self, element: ET)

Source from the content-addressed store, hash-verified

716 return self._delete(key, None)
717
718 def delete_exact(self, element: ET) -> ET | None:
719 """Delete *element* from the BTree.
720
721 Returns the matching element or ``None`` if it was not in the BTree.
722 """
723 delt = self._delete(element.key(), element)
724 assert delt is element
725 return delt
726
727 def __len__(self):
728 return self.size

Callers 4

process_messageMethod · 0.45
test_exact_deleteFunction · 0.45
test_delete_exactFunction · 0.45

Calls 2

_deleteMethod · 0.95
keyMethod · 0.45

Tested by 3

test_exact_deleteFunction · 0.36
test_delete_exactFunction · 0.36