]> granicus.if.org Git - python/commitdiff
Close #18285: add 'repeat' parameter to docstring for product
authorAndrew Kuchling <amk@amk.ca>
Sat, 22 Jun 2013 23:04:11 +0000 (19:04 -0400)
committerAndrew Kuchling <amk@amk.ca>
Sat, 22 Jun 2013 23:04:11 +0000 (19:04 -0400)
Modules/itertoolsmodule.c

index 401c684e5885bd04fe1b713de212472737a52a64..1494f8d6784cfbcc604bddd688da4b5b5b7af5a6 100644 (file)
@@ -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\