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

Method get_element

dns/btree.py:688–692  ·  view source on GitHub ↗

Get the element matching *key* from the BTree, or return ``None`` if it does not exist.

(self, key: KT)

Source from the content-addressed store, hash-verified

686 return oelt
687
688 def get_element(self, key: KT) -> ET | None:
689 """Get the element matching *key* from the BTree, or return ``None`` if it
690 does not exist.
691 """
692 return self.root.get(key)
693
694 def _delete(self, key: KT, exact: ET | None) -> ET | None:
695 self._check_mutable_and_park()

Callers 3

__getitem__Method · 0.80
__contains__Method · 0.80
test_exact_deleteFunction · 0.80

Calls 1

getMethod · 0.45

Tested by 1

test_exact_deleteFunction · 0.64