mirror of https://github.com/python/cpython
gh-111343: Fix `itertools` docs: `start` arg is optional for `count` (gh-111344)
This commit is contained in:
parent
21f068d80c
commit
ee2d22f06d
|
@ -41,7 +41,7 @@ operator can be mapped across two vectors to form an efficient dot-product:
|
|||
================== ================= ================================================= =========================================
|
||||
Iterator Arguments Results Example
|
||||
================== ================= ================================================= =========================================
|
||||
:func:`count` start, [step] start, start+step, start+2*step, ... ``count(10) --> 10 11 12 13 14 ...``
|
||||
:func:`count` [start[, step]] start, start+step, start+2*step, ... ``count(10) --> 10 11 12 13 14 ...``
|
||||
:func:`cycle` p p0, p1, ... plast, p0, p1, ... ``cycle('ABCD') --> A B C D A B C D ...``
|
||||
:func:`repeat` elem [,n] elem, elem, elem, ... endlessly or up to n times ``repeat(10, 3) --> 10 10 10``
|
||||
================== ================= ================================================= =========================================
|
||||
|
|
Loading…
Reference in New Issue