Skip to content

Commit 48ff25d

Browse files
committed
Closes #18220: expand itertools.islice docstring to 2 lines
1 parent 2797e60 commit 48ff25d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/itertoolsmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,8 @@ static PyMethodDef islice_methods[] = {
15541554
};
15551555

15561556
PyDoc_STRVAR(islice_doc,
1557-
"islice(iterable, [start,] stop [, step]) --> islice object\n\
1557+
"islice(iterable, stop) --> islice object\n\
1558+
islice(iterable, start, stop[, step]) --> islice object\n\
15581559
\n\
15591560
Return an iterator whose next() method returns selected values from an\n\
15601561
iterable. If start is specified, will skip all preceding elements;\n\

0 commit comments

Comments
 (0)