From 446a39f78fa2d6c0fc12aa8a5facd85c84377e79 Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Sat, 22 Jun 2013 19:04:11 -0400 Subject: Close #18285: add 'repeat' parameter to docstring for product --- Modules/itertoolsmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index 401c684..1494f8d 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -2229,7 +2229,7 @@ static PyMethodDef product_methods[] = { }; PyDoc_STRVAR(product_doc, -"product(*iterables) --> product object\n\ +"product(*iterables, repeat=1) --> product object\n\ \n\ Cartesian product of input iterables. Equivalent to nested for-loops.\n\n\ For example, product(A, B) returns the same as: ((x,y) for x in A for y in B).\n\ -- cgit v0.12 From da30acf50b4ccf6751cdd6c786cbab283865a79f Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Sat, 22 Jun 2013 19:20:54 -0400 Subject: Closes #18220: expand itertools.islice docstring to 2 lines --- Modules/itertoolsmodule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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\ -- cgit v0.12