(original) (raw)

changeset: 84262:1fad7a709aae branch: 3.3 parent: 84260:c541073173bb user: Andrew Kuchling amk@amk.ca date: Sat Jun 22 19:04:11 2013 -0400 files: Modules/itertoolsmodule.c description: Close #18285: add 'repeat' parameter to docstring for product diff -r c541073173bb -r 1fad7a709aae Modules/itertoolsmodule.c --- a/Modules/itertoolsmodule.c Sat Jun 22 18:26:51 2013 -0400 +++ b/Modules/itertoolsmodule.c Sat Jun 22 19:04:11 2013 -0400 @@ -2229,7 +2229,7 @@ }; 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\ /amk@amk.ca