[Twisted-Python] Re: [Stackless] Stackless and Twisted

Ok, here's a completely rewritten stackless support module for Twisted. I used to have one that did all kinds of stupid unnecessary stuff with the reactor and junk, but it's gone now. For you CVS Twisted users, this is in sandbox/radix/threadless.py. It offers two functions: blockOn and deferredTasklet. deferredTasklet is a function decorator that you should use on your stacklessy code that you want to integrate with Twisted. blockOn is a function that you should pass a Deferred to wait for it to fire. Use it in your stacklessy-code. There's a TEST function (that's automatically run when you execute the module) that shows this off with some somewhat helpful comments. There are also prints sprinkled throughout the code to show you what's going on. -- Twisted | Christopher Armstrong: International Man of Twistery Radix | Release Manager, Twisted Project ---------+ http://radix.twistedmatrix.com/
participants (1)
-
Christopher Armstrong