Message176221
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). |
|
Date |
User |
Action |
Args |
2012-11-23 19:35:32 | NeilGirdhar | set | recipients:
+ NeilGirdhar, rhettinger, eric.araujo, serhiy.storchaka |
2012-11-23 19:35:32 | NeilGirdhar | set | messageid: <1353699332.8.0.0698193049337.issue16540@psf.upfronthosting.co.za> |
2012-11-23 19:35:32 | NeilGirdhar | link | issue16540 messages |
2012-11-23 19:35:32 | NeilGirdhar | create | |
|