This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
class Sequence(object): | |
""" | |
This class wraps itertools.count to provide additional bound means of | |
extracting data from the stream | |
""" | |
def __init__(self, start: int=0, step: int=1): | |
self._counter = itertools.count(start=start, step=step) |