PyEuler

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Mon Feb 25 18:16:18 EST 2008


Arnaud Delobelle:
> I disagree; the generator function has no right to keep a and b to
> itself.  a and b cry out to be function parameters.

I see. Then that's a generator for a generalized Fibonacci
sequence :-)
Your version too is useful.

Bye,
bearophile



More information about the Python-list mailing list