1def iterator(self): 2 yield self(0) 3 n = self(1) 4 while True: 5 yield n 6 yield -n 7 n += 1 8 9 10