File: bitarray/_bitarray.c
Function: bitarray_insert
Error: returning (PyObject*)NULL without setting an exception
1400 static PyObject *
1401 bitarray_insert(bitarrayobject *self, PyObject *args)
1402 {
1403     idx_t i;
1404     PyObject *v;
1405 
1406     if (!PyArg_ParseTuple(args, "LO:insert", &i, &v))
when _PyArg_ParseTuple_SizeT() succeeds
taking False path
1407         return NULL;
1408 
1409     if (i < 0) {
when considering range: -0x8000000000000000 <= value <= -1
taking True path
1410         i += self->nbits;
1411         if (i < 0)
when considering range: -0x8000000000000000 <= value <= -1
taking True path
1412             i = 0;
1413     }
1414     if (i >= self->nbits)
when considering range: -0x8000000000000000 <= value <= 0
taking True path
1415         i = self->nbits;
1416 
1417     if (insert_n(self, i, 1) < 0)
when considering range: -0x80000000 <= value <= -1
taking True path
1418         return NULL;
1419 
1420     set_item(self, i, v);
1421     Py_RETURN_NONE;
1422 }
returning (PyObject*)NULL without setting an exception
found 5 similar trace(s) to this