On Tue, 22 Jan 2008 15:52:02 +0100, "Diez B. Roggisch" <[EMAIL PROTECTED]> 
wrote:
>Jean-Paul Calderone wrote:
>
> [snip]
>>
>> Sorry, I still don't understand.  Why is a generator different from any
>> other iterator?
>
>Because you can use send(value) on it for example. Which you can't with
>every other iterator. And that you can utizilize to create a little
>framework of co-routines or however you like to call it that will yield
>values when they want, or generators if they have nested co-routines the
>scheduler needs to keep track of and invoke after another.

Ah.  Thanks for clarifying.

Jean-Paul
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to