Message322029
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. |
|
Date |
User |
Action |
Args |
2018-07-20 16:59:44 | corona10 | set | recipients:
+ corona10, rhettinger, chepner |
2018-07-20 16:59:44 | corona10 | set | messageid: <1532105984.25.0.56676864532.issue34169@psf.upfronthosting.co.za> |
2018-07-20 16:59:44 | corona10 | link | issue34169 messages |
2018-07-20 16:59:44 | corona10 | create | |
|