From b003ffa0ab7b55d31980b983ad5db2cf5068edaf Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Fri, 21 Jun 2013 07:58:35 -0400 Subject: Closes #18239: correct description of count() in module docstring --- Modules/itertoolsmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index 644104e..401c684 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -4452,7 +4452,7 @@ PyDoc_STRVAR(module_doc, "Functional tools for creating and using iterators.\n\ \n\ Infinite iterators:\n\ -count([n]) --> n, n+1, n+2, ...\n\ +count(start=0, step=1) --> start, start+step, start+2*step, ...\n\ cycle(p) --> p0, p1, ... plast, p0, p1, ...\n\ repeat(elem [,n]) --> elem, elem, elem, ... endlessly or up to n times\n\ \n\ -- cgit v0.12 From edb4260ffdda734ec028d56f4eb2006890c35f4c Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Fri, 21 Jun 2013 08:00:58 -0400 Subject: Closes #18218: use correct variable name for starting point --- Doc/library/itertools.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index a0745d7..0ee93ed 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -278,7 +278,7 @@ loops that truncate the stream. .. function:: count(start=0, step=1) - Make an iterator that returns evenly spaced values starting with *n*. Often + Make an iterator that returns evenly spaced values starting with number *start*. Often used as an argument to :func:`map` to generate consecutive data points. Also, used with :func:`zip` to add sequence numbers. Equivalent to:: -- cgit v0.12