mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +00:00
Close #18285: add 'repeat' parameter to docstring for product
This commit is contained in:
parent
de3beb2617
commit
446a39f78f
1 changed files with 1 additions and 1 deletions
|
@ -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\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue