Skip to content

itertools.rst says that start is a required argument for count, while it is not #111343

@sobolevn

Description

@sobolevn

Bug report

Снимок экрана 2023-10-26 в 10 04 40

However,

>>> import itertools
>>> itertools.count()
count(0)
>>> next(itertools.count())
0

I propose that we use [start, step] instead.

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions