| 89 | } |
| 90 | |
| 91 | int |
| 92 | BPlusTree_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 | |
| 104 | Py_ssize_t |
| 105 | BPlusTree_length(BPlusTree *self) { |
no test coverage detected