def str(self, item):
    print(item)
prev, current = None, next(self.__iter)
while isinstance(current, int):
    print(current)
prev, current = current, next(self.__iter)
Заставить итератор Python идти назад?