Archive for June, 2005

Using generators to hide loop initialization

How often have you wanted to do a number of things in a loop, but had to move items out of the loop for performance reasons? Here’s a cool use of generators that I just figured out to hide the initialization.
Read the rest of this entry »

No Comments