>>> fg = fibGen() >>> for x in range(9): print fg.next() 0 1 1 2 3 5 8 13 21 >>>