summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAndrew Kuchling <amk@amk.ca>2013-06-22 23:20:54 (GMT)
committerAndrew Kuchling <amk@amk.ca>2013-06-22 23:20:54 (GMT)
commitda30acf50b4ccf6751cdd6c786cbab283865a79f (patch)
tree152beee92df7605aab34c63627aa26ecef1fbb10 /Modules
parent446a39f78fa2d6c0fc12aa8a5facd85c84377e79 (diff)
downloadcpython-da30acf50b4ccf6751cdd6c786cbab283865a79f.zip
cpython-da30acf50b4ccf6751cdd6c786cbab283865a79f.tar.gz
cpython-da30acf50b4ccf6751cdd6c786cbab283865a79f.tar.bz2
Closes #18220: expand itertools.islice docstring to 2 lines
Diffstat (limited to 'Modules')
-rw-r--r--Modules/itertoolsmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 1494f8d..bd10ee4 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -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\