def iter(self, start=0, end=None):
        if end is None:
            end = self._index + 1
        elif end == 0:
            raise StopIteration()
        if start >= end:
            raise StopIteration()
        # Check arguments.
        assert 0 <= end <= len(self._history)
        assert 0 <= start <= end - 1
        for i in range(start, end):
            yield self._history[i]
Iterate through successive history items.
dataset/ETHPy150Open kwikteam/phy/phy/cluster/manual/_history.py/History.iter