| 107 | } |
| 108 | |
| 109 | int |
| 110 | BPlusTree_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 |
nothing calls this directly
no test coverage detected