do...until wisdom needed...

Neelakantan Krishnaswami neelk at alum.mit.edu
Sat Apr 21 08:33:16 EDT 2001


On 20 Apr 2001 07:40:05 -0700, Aahz Maruch <aahz at panix.com> wrote:
>In article <slrn9dv5st.68t.neelk at alum.mit.edu>,
>Neelakantan Krishnaswami <neelk at alum.mit.edu> wrote:
>
>> My personal suspicion (and this is just a guess) is that if
>> syntactically lightweight generators and coroutines were added to
>> Python, then the pressure for new features would fade.
>
> Generators (called "iterators") are going to be 2.2.  They'll be
> more powerful that Icon's generators; it's not clear whether they'll
> be a full-fledged substitute for coroutines.

{\mr_burns Excellent.}

Is this the iterator idea that Ping posted about a couple of months
back? What is the PEP number for this? I'm curious how the existing
iteration protocol will interact with the new iterators.


Neel



More information about the Python-list mailing list