Lines Matching refs:step
390 Py_ssize_t start, stop, step, slicelength, i;
392 if (PySlice_Unpack(index, &start, &stop, &step) < 0) {
396 &start, &stop, step);
400 else if (step == 1) {
415 cur += step, i++) {
595 Py_ssize_t start, stop, step, slicelen, needed;
627 step = 1;
637 if (PySlice_Unpack(index, &start, &stop, &step) < 0) {
641 &stop, step);
676 if ((step < 0 && start < stop) ||
677 (step > 0 && start > stop))
679 if (step == 1) {
695 if (step < 0) {
697 start = stop + step * (slicelen - 1) - 1;
698 step = -step;
701 i < slicelen; cur += step, i++) {
702 Py_ssize_t lim = step - 1;
704 if (cur + step >= (size_t)PyByteArray_GET_SIZE(self))
711 cur = start + (size_t)slicelen*step;
735 for (cur = start, i = 0; i < slicelen; cur += step, i++)