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

Method get

python/bplustree/__init__.py:29–34  ·  view source on GitHub ↗

Get value with default.

(self, key, default=None)

Source from the content-addressed store, hash-verified

27 super().__init__(capacity=capacity)
28
29 def get(self, key, default=None):
30 """Get value with default."""
31 try:
32 return self[key]
33 except KeyError:
34 return default
35
36 def values(self):
37 """Return iterator over values."""

Callers 5

test_get_with_defaultMethod · 0.95
demo_api_compatibilityFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls