mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Close #18285: add 'repeat' parameter to docstring for product
This commit is contained in:
@@ -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\
|
||||
|
||||
Reference in New Issue
Block a user