File: | src/BTrees/TreeSetTemplate.c |
Function: | TreeSet_insert |
Error: | returning (PyObject*)NULL without setting an exception |
17 static PyObject *
18 TreeSet_insert(BTree *self, PyObject *args)
19 {
20 PyObject *key;
21 int i;
22
23 if (!PyArg_ParseTuple(args, "O:insert", &key))
when PyArg_ParseTuple() succeeds
taking False path
24 return NULL;
25 i = _BTree_set(self, key, Py_None, 1, 1);
26 if (i < 0)
when considering range: -0x80000000 <= value <= -1
taking True path
27 return NULL;
28 return PyInt_FromLong(i);
29 }
returning (PyObject*)NULL without setting an exception