cpython: 1fad7a709aae (original) (raw)

Mercurial > cpython

changeset 84262:1fad7a709aae 3.3

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

Andrew Kuchling amk@amk.ca
date Sat, 22 Jun 2013 19:04:11 -0400
parents c541073173bb
children 7ecca1a98220
files Modules/itertoolsmodule.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-)[+] [-] Modules/itertoolsmodule.c 2

line wrap: on

line diff

--- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -2229,7 +2229,7 @@ static PyMethodDef product_methods[] = { }; PyDoc_STRVAR(product_doc, -"product(*iterables) --> product object\n[](#l1.7) +"product(*iterables, repeat=1) --> product object\n[](#l1.8) \n[](#l1.9) Cartesian product of input iterables. Equivalent to nested for-loops.\n\n[](#l1.10) For example, product(A, B) returns the same as: ((x,y) for x in A for y in B).\n[](#l1.11)