1464 static PyObject *
1465 bitarray_remove(bitarrayobject *self, PyObject *v)
1466 {
1467 idx_t i;
1468 long vi;
1469
1470 vi = PyObject_IsTrue(v);
when PyObject_IsTrue() returns 1 (true)
1471 if (vi < 0)
taking False path
1472 return NULL;
1473
1474 i = findfirst(self, vi);
1475 if (i < 0) {
when considering range: 0 <= value <= 0x7fffffffffffffff
taking False path
1476 PyErr_SetString(PyExc_ValueError, "remove(x): x not in bitarray");
1477 return NULL;
1478 }
1479 if (delete_n(self, i, 1) < 0)
when considering range: -0x80000000 <= value <= -1
taking True path
1480 return NULL;
1481 Py_RETURN_NONE;
1482 }
returning (PyObject*)NULL without setting an exception
found 1 similar trace(s) to this