1 """FibonacciNumber generator (using PythonNewFunction)
2 """
3
4 def FibonacciNumberGenerator(a=1,b=2):
5 while 1:
6 yield a
7 a, b = b, a+b
8
9 t = FibonacciNumberGenerator()
10 for i in range(10):
11 print t.next(),
12
BioHackersNet