18 Feb
2009
18 Feb
'09
11:29 a.m.
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