Iterator question

Aahz aahz at pythoncraft.com
Sat May 17 12:38:05 EDT 2003


In article <W7sxa.11082$XV1.3019 at nwrdny03.gnilink.net>,
Raymond Hettinger <python at rcn.com> wrote:
>>
>> To use iterators as producers instead of consumers, you need a way
>> to send data into the iterator
>
>Err, switch producer and consumer for the sentence to make sense.

Right, except for the common degenerate case of chained generators.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"In many ways, it's a dull language, borrowing solid old concepts from
many other languages & styles:  boring syntax, unsurprising semantics,
few automatic coercions, etc etc.  But that's one of the things I like
about it."  --Tim Peters on Python, 16 Sep 93




More information about the Python-list mailing list