[Tutor] I am having difficulty grasping 'generators'

R. Alan Monroe amonroe at columbus.rr.com
Wed May 28 00:52:46 CEST 2014


> I need an explanation so simple as using the expression 'print ()', in this case 'yield'.
> Python 2.6 here!

Ever write any C programs with static variables? Generators can be
explained in those terms if you have experience with them.

Alan



More information about the Tutor mailing list