times
argument of itertools.repeat()
accepts a negative number and doesn't accept None
#135330
Labels
docs
Documentation in the Doc dir
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
times
argument of itertools.repeat() accepts a negative number as shown below:So, error should be raised like below:
And,
times
argument doesn't acceptNone
as shown below soNone
should be accepted:CPython versions tested on:
3.13
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: