Commit 2797e603 authored by Andrew Kuchling's avatar Andrew Kuchling

Close #18285: add 'repeat' parameter to docstring for product

parent ac38e980
...@@ -2229,7 +2229,7 @@ static PyMethodDef product_methods[] = { ...@@ -2229,7 +2229,7 @@ static PyMethodDef product_methods[] = {
}; };
PyDoc_STRVAR(product_doc, PyDoc_STRVAR(product_doc,
"product(*iterables) --> product object\n\ "product(*iterables, repeat=1) --> product object\n\
\n\ \n\
Cartesian product of input iterables. Equivalent to nested for-loops.\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\ For example, product(A, B) returns the same as: ((x,y) for x in A for y in B).\n\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment