if (m->sq_length) {
int l = (*m->sq_length)(s);
if (l < 0)
- return NULL;
+ return -1;
i += l;
}
}
if (m->sq_length) {
int l = (*m->sq_length)(s);
if (l < 0)
- return NULL;
+ return -1;
i += l;
}
}
if (m->sq_length) {
int l = (*m->sq_length)(s);
if (l < 0)
- return NULL;
+ return -1;
if (i1 < 0)
i1 += l;
if (i2 < 0)
if (m->sq_length) {
int l = (*m->sq_length)(s);
if (l < 0)
- return NULL;
+ return -1;
if (i1 < 0)
i1 += l;
if (i2 < 0)
okey = PyString_FromString(key);
if (okey == NULL)
- return NULL;
+ return -1;
r = PyObject_SetItem(o, okey, value);
Py_DECREF(okey);
return r;