This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author corona10
Recipients chepner, corona10, rhettinger
Date 2018-07-20.16:59:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532105984.25.0.56676864532.issue34169@psf.upfronthosting.co.za>
In-reply-to
Content
IMHO, this issue should be fixed since
times=None can be passed,
ref: https://docs.python.org/3/library/itertools.html#itertools.repeat

This documentation also shows the equivalent python code,
From this code, times=None should work but does not work in current implementation.

def repeat(object, times=None):
    # repeat(10, 3) --> 10 10 10
    if times is None:
        while True:
            yield object
    else:
        for i in range(times):
            yield object

I've upload PR with this issue.
History
Date User Action Args
2018-07-20 16:59:44corona10setrecipients: + corona10, rhettinger, chepner
2018-07-20 16:59:44corona10setmessageid: <1532105984.25.0.56676864532.issue34169@psf.upfronthosting.co.za>
2018-07-20 16:59:44corona10linkissue34169 messages
2018-07-20 16:59:44corona10create