On 2010-10-15, Albert Hopkins <mar...@letterboxes.org> wrote:
> 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!

Then I could write a generator that reports stock prices and...

-- 
Grant Edwards               grant.b.edwards        Yow! Zippy's brain cells
                                  at               are straining to bridge
                              gmail.com            synapses ...
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to