[Python-ideas] Revised revised revised PEP on yield-from

Jesse Noller jnoller at gmail.com
Wed Feb 18 04:38:07 CET 2009


On Tue, Feb 17, 2009 at 10:29 PM, Greg Ewing
<greg.ewing at canterbury.ac.nz> wrote:
> Guido van Rossum wrote:
>>
>> Also, it would seem you cannot write
>> functions running in lightweight threads that are also "ordinary"
>> generators, since yield is reserved for "calling" the scheduler.
>
> Yes, that's a problem. I don't have a good answer
> for that at the moment.
>
> BTW, I have another idea for an example (a thread
> scheduler and an example using it to deal with
> sockets asynchronously). Is anyone still interested,
> or have you all seen enough already?
>
> --
> Greg

Oooh, oooh I am! I am! (still interested that is).

jesse



More information about the Python-ideas mailing list