"sins" (aka, acknowledged language problems)

Neel Krishnaswami neelk at brick.cswv.com
Tue Dec 28 21:53:41 EST 1999


Dan Schmidt <dfan at harmonixmusic.com> wrote:
>neelk at brick.cswv.com (Neel Krishnaswami) writes:
>
>| The general problem that needs fixing is that Python really needs a
>| better iteration protocol. (I understand that Guido has worked one
>| out, but hasn't yet implemented it. You may want to contact him so
>| that the two of you can use Viper as a test bed for advanced Python
>| ideas.) 
>
>Anyone who is interested in better iteration protocols would probably be
>interested in looking at how Sather does it.  Sather is an Eiffel-like
>language with a home page at <http://www.icsi.berkeley.edu/~sather/>;
>it performs iteration with coroutines, basically.  

It *looks* like with Christian Tismer's Stackless Python, it should be
straightforward to implement Sather-style iterators, since Stackless
IIRC has first-class continuations. If I have time this weekend I'll
give it a shot.


Neel



More information about the Python-list mailing list