isgenerator(...) - anywhere to be found?
Jean-Paul Calderone
exarkun at divmod.com
Tue Jan 22 10:48:54 EST 2008
On Tue, 22 Jan 2008 15:52:02 +0100, "Diez B. Roggisch" <deets at nospam.web.de> 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
More information about the Python-list
mailing list