Lines Matching refs:slicelen
1365 Py_ssize_t start, stop, step, slicelen, cur, i; local
1374 slicelen = _PySlice_AdjustIndices(self->extra->length, &start, &stop,
1377 if (slicelen <= 0)
1380 list = PyList_New(slicelen);
1384 for (cur = start, i = 0; i < slicelen;
1422 Py_ssize_t start, stop, step, slicelen, newlen, cur, i; local
1433 slicelen = _PySlice_AdjustIndices(self->extra->length, &start, &stop,
1435 assert(slicelen <= self->extra->length);
1451 if (step != 1 && newlen != slicelen)
1458 (int)newlen, (int)slicelen
1462 newlen, slicelen
1470 if (newlen > slicelen) {
1471 if (element_resize(self, newlen - slicelen) < 0) {
1476 assert(newlen - slicelen <= INT_MAX - self->extra->length);
1477 assert(newlen - slicelen >= -self->extra->length);
1479 if (slicelen > 0) {
1483 recycle = PyList_New(slicelen);
1488 for (cur = start, i = 0; i < slicelen;
1493 if (newlen < slicelen) {
1496 self->extra->children[i + newlen - slicelen] = self->extra->children[i];
1497 } else if (newlen > slicelen) {
1500 self->extra->children[i + newlen - slicelen] = self->extra->children[i];
1511 self->extra->length += (int)(newlen - slicelen);