]> granicus.if.org Git - python/commitdiff
Closes #18220: expand itertools.islice docstring to 2 lines
authorAndrew Kuchling <amk@amk.ca>
Sat, 22 Jun 2013 23:20:54 +0000 (19:20 -0400)
committerAndrew Kuchling <amk@amk.ca>
Sat, 22 Jun 2013 23:20:54 +0000 (19:20 -0400)
Modules/itertoolsmodule.c

index 1494f8d6784cfbcc604bddd688da4b5b5b7af5a6..bd10ee416adb2cbb2f350c1eac870fd5a24d2be6 100644 (file)
@@ -1554,7 +1554,8 @@ static PyMethodDef islice_methods[] = {
 };
 
 PyDoc_STRVAR(islice_doc,
-"islice(iterable, [start,] stop [, step]) --> islice object\n\
+"islice(iterable, stop) --> islice object\n\
+islice(iterable, start, stop[, step]) --> islice object\n\
 \n\
 Return an iterator whose next() method returns selected values from an\n\
 iterable.  If start is specified, will skip all preceding elements;\n\