On May 7, 2005, at 1:45 AM, Michele Simionato wrote:

> On 5/6/05, Steven Bethard <[EMAIL PROTECTED]> wrote:
>
>> FWIW, I'm +1 on this.  Enhanced Iterators
>>  * updates the iterator protocol to use .__next__() instead  
>> of .next()
>>  * introduces a new builtin next()
>>  * allows continue-statements to pass values to iterators
>>  * allows generators to receive values with a yield-expression
>> The first two are, I believe, how the iterator protocol probably
>> should have been in the first place.  The second two provide a simple
>> way of passing values to generators, something I got the impression
>> that the co-routiney people would like a lot.
>>
>
> Thank you for splitting the PEP. Conceptually, the "coroutine" part
> has nothing to do with blocks and it stands on its own, it is right
> to discuss it separately from the block syntax.
>
> Personally, I do not see an urgent need for the block syntax (most of
> the use case can be managed with decorators) nor for the "couroutine"
> syntax (you can already use Armin Rigo's greenlets for that).

While Armin's greenlets are really cool they're also really dangerous  
when you're integrating with C code, especially event loops and  
such.  Language support would be MUCH better.

-bob

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to