Lines Matching defs:step
1599 Py_ssize_t step;
1609 Py_ssize_t start=0, stop=-1, step=1;
1660 step = PyNumber_AsSsize_t(a3, PyExc_OverflowError);
1661 if (step == -1 && PyErr_Occurred())
1664 if (step<1) {
1684 lz->step = step;
1734 lz->next += (size_t)lz->step;
1773 lz->it, lz->next, stop, lz->step,
1798 islice(iterable, start, stop[, step]) --> islice object\n\
1803 specified as another value, step determines how many values are\n\
4137 fast_mode: when cnt an integer < PY_SSIZE_T_MAX and no step is specified.
4143 slow_mode: when cnt == PY_SSIZE_T_MAX, step is not int(1), or cnt is a float.
4156 step as long_step: object(c_default="NULL") = 1
4160 def count(firstval=0, step=1):
4164 x += step
4175 long step;
4202 /* If not specified, step defaults to 1 */
4210 /* Fast mode only works when the step is 1 */
4213 step = PyLong_AsLong(long_step);
4214 if (step != 1) {
4216 if (step == -1 && PyErr_Occurred())
4300 long step = PyLong_AsLong(lz->long_step);
4301 if (step == -1 && PyErr_Occurred()) {
4304 if (step == 1) {
4305 /* Don't display step when it is an integer equal to 1 */
4813 count(start=0, step=1) --> start, start+step, start+2*step, ...\n\
4825 islice(seq, [start,] stop [, step]) --> elements from\n\
4826 seq[start:stop:step]\n\