On Fri, 2010-10-15 at 14:54 +0000, Grant Edwards wrote: > > so you could test for emptiness, look ahead at the next item without > > consuming it, etc. > > And what happens when the generator is doing things like executing > database transactions?
You should also add prediction to the caching. This will improve performance even more! -a -- http://mail.python.org/mailman/listinfo/python-list