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 serhiy.storchaka
Recipients ezio.melotti, rhettinger, serhiy.storchaka, vajrasky
Date 2013-10-09.19:30:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381347033.24.0.407048513134.issue19145@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2013-10-09 19:30:33serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, ezio.melotti, vajrasky
2013-10-09 19:30:33serhiy.storchakasetmessageid: <1381347033.24.0.407048513134.issue19145@psf.upfronthosting.co.za>
2013-10-09 19:30:33serhiy.storchakalinkissue19145 messages
2013-10-09 19:30:33serhiy.storchakacreate