diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-10-27 04:30:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-27 04:30:13 (GMT) |
commit | ee2d22f06d8a4ca13b2dba5e8a7a639a3997cc69 (patch) | |
tree | 3dc96f13a5d24cb310f8178d14bfa73c185f595c /Doc | |
parent | 21f068d80c6cc5de75f9df70fdd733d0ce9c70de (diff) | |
download | cpython-ee2d22f06d8a4ca13b2dba5e8a7a639a3997cc69.zip cpython-ee2d22f06d8a4ca13b2dba5e8a7a639a3997cc69.tar.gz cpython-ee2d22f06d8a4ca13b2dba5e8a7a639a3997cc69.tar.bz2 |
gh-111343: Fix `itertools` docs: `start` arg is optional for `count` (gh-111344)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/itertools.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 5846d78..f97e7f7 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -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`` ================== ================= ================================================= ========================================= |