Lines Matching defs:step
2357 Py_ssize_t start, stop, step, slicelength, i;
2363 if (PySlice_Unpack(item, &start, &stop, &step) < 0) {
2367 step);
2372 else if (step == 1) {
2389 cur += step, i++) {
2408 Py_ssize_t start, stop, step, slicelength, needed;
2429 step = 1;
2436 if (PySlice_Unpack(item, &start, &stop, &step) < 0) {
2440 step);
2477 if ((step > 0 && stop < start) ||
2478 (step < 0 && stop > start))
2490 if (step == 1) {
2517 if (step < 0) {
2519 start = stop + step * (slicelength - 1) - 1;
2520 step = -step;
2523 cur += step, i++) {
2524 Py_ssize_t lim = step - 1;
2526 if (cur + step >= (size_t)Py_SIZE(self))
2532 cur = start + (size_t)slicelength * step;
2554 cur += step, i++) {