Message322029
| 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: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 | |