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

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Feb 18 04:29:20 CET 2009

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?


More information about the Python-ideas mailing list