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

Function BPlusTree_contains

python/bplustree_c_src/bplustree_module.c:109–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109int
110BPlusTree_contains(BPlusTree *self, PyObject *key) {
111 /* Check containment without releasing the GIL */
112 PyObject *value = tree_get(self, key);
113 if (value) {
114 Py_DECREF(value);
115 return 1;
116 }
117 PyErr_Clear();
118 return 0;
119}
120
121/* Iterator implementation */
122

Callers

nothing calls this directly

Calls 1

tree_getFunction · 0.85

Tested by

no test coverage detected