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 NeilGirdhar
Recipients NeilGirdhar, eric.araujo, rhettinger, serhiy.storchaka
Date 2012-11-23.19:35:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353699332.8.0.0698193049337.issue16540@psf.upfronthosting.co.za>
In-reply-to
Content
My suggestion is then to update collection.abc to have an InfiniteSequence, which inherits from Iterable, and adds abstract methods __getitem__ and mixin methods __iter__.

Then, itertools count, cycle, and repeat could implement collection.abc.InfiniteSequence, and collections.abc.Iterator (for backwards-compatibility).
History
Date User Action Args
2012-11-23 19:35:32NeilGirdharsetrecipients: + NeilGirdhar, rhettinger, eric.araujo, serhiy.storchaka
2012-11-23 19:35:32NeilGirdharsetmessageid: <1353699332.8.0.0698193049337.issue16540@psf.upfronthosting.co.za>
2012-11-23 19:35:32NeilGirdharlinkissue16540 messages
2012-11-23 19:35:32NeilGirdharcreate