Stop waiting for the other guy to do it. Login and vote now.
By mrbo
via builderau.com.au
Published: Jul 10 2007 / 15:07
Sometimes your program is just too motivated, and does all this work you don't need or want it to do -- you want it to be lazier. That's where generators come in. Using a generator in Python lets you choose exactly how much you want done, and when.



Add your comment