[Python-Dev] Re: Sets: elt in dict, lst.include

Neil Schemenauer nas@arctrix.com
Tue, 30 Jan 2001 09:24:54 -0800


[Tim Peters on adding yet more syntatic sugar]
> Available time is finite, and this isn't at the top of the list
> of things I'd like to see (resuming the discussion of
> generators + coroutines + iteration protocol comes to mind
> first).

What's the chances of getting generators into 2.2?  The
implementation should not be hard.  Didn't Steven Majewski have
something years ago?  Why do we always get sidetracked on trying
to figure out how to do coroutines and continuations?

Generators would add real power to the language and are simple
enough that most users could benefit from them.  Also, it should be
possible to design an interface that does not preclude the
addition of coroutines or continuations later.

I'm not volunteering to champion the cause just yet.  I just want
to know if there is some issue I'm missing.

  Neil