Message199335
Raymond's patch looks even more cumbersome than previous code. And it doesn't work in some cases:
>>> it = itertools.cycle([-2, -1])
>>> class Index:
... def __index__(self): return next(it)
...
>>> itertools.repeat(42, times=Index())
repeat(42, -1) |
|
Date |
User |
Action |
Args |
2013-10-09 19:30:33 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, ezio.melotti, vajrasky |
2013-10-09 19:30:33 | serhiy.storchaka | set | messageid: <1381347033.24.0.407048513134.issue19145@psf.upfronthosting.co.za> |
2013-10-09 19:30:33 | serhiy.storchaka | link | issue19145 messages |
2013-10-09 19:30:33 | serhiy.storchaka | create | |
|