[Python-Dev] Re: Re: anonymous blocks

Fredrik Lundh fredrik at pythonware.com
Wed Apr 27 17:32:16 CEST 2005


Phillip J. Eby wrote:
> This interest is unrelated to anonymous blocks in any case; it's about 
> being able to simulate lightweight pseudo-threads ala Stackless, for use 
> with Twisted. I can do this now of course, but "yield expressions" as 
> described in PEP 340 would eliminate the need for the awkward syntax and 
> frame hackery I currently use.

since when does
 def mythread(self):
 ...
 yield request
 print self.response
 ...
qualify as frame hackery?
</F>


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /