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

Function BPlusTree_delitem

python/bplustree_c_src/bplustree_module.c:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91int
92BPlusTree_delitem(BPlusTree *self, PyObject *key) {
93 int result = tree_delete(self, key);
94 if (result == -1) return -1; /* Error already set */
95 if (result == 0) {
96 /* Key not found */
97 PyErr_SetObject(PyExc_KeyError, key);
98 return -1;
99 }
100 self->modification_count++;
101 return 0; /* Success */
102}
103
104Py_ssize_t
105BPlusTree_length(BPlusTree *self) {

Callers 1

BPlusTree_setitemFunction · 0.85

Calls 1

tree_deleteFunction · 0.85

Tested by

no test coverage detected