File: | src/BTrees/SetTemplate.c |
Function: | Set_update |
Error: | returning (PyObject*)NULL without setting an exception |
65 static PyObject *
66 Set_update(Bucket *self, PyObject *args)
67 {
68 PyObject *seq = NULL;
69 int n = 0;
70
71 if (!PyArg_ParseTuple(args, "|O:update", &seq))
when PyArg_ParseTuple() succeeds
taking False path
72 return NULL;
73
74 if (seq) {
taking True path
75 n = _Set_update(self, seq);
76 if (n < 0)
when considering range: -0x80000000 <= value <= -1
taking True path
77 return NULL;
78 }
79
80 return PyInt_FromLong(n);
81 }
returning (PyObject*)NULL without setting an exception