def next(self):
        if self.n < self.max:
            r = self.b
            self.a, self.b = self.b, self.a + self.b
            self.n = self.n + 1
            return r
        raise StopIteration()
dataset/ETHPy150Open Akagi201/learning-python/yield/fab.py/Fab.next/original