<html><body>On 10 Apr, 11:15 am, andrewfr_ice@yahoo.com wrote:<br /><br />&gt;I have been using Twisted with Stackless. I am<br />&gt;interested in writing a more Stackless "friendly"<br />&gt;reactor. I believe a stackless friendly reactor would<br />&gt;call stackless.schedule() whenever possible.<br /><br />I disagree. &#160;Separate reactor implementations are for different OS multiplexing mechanisms. &#160;stackless.schedule() should *not* be called "whenever possible", but rather, whenever stackless tasks have something to do.<br /><br />&gt;I notice there are different types of reactor. I have<br />&gt;been looking at SelectReactor and its base case,<br />&gt;Posixbase. It seems easy enough to modify MainLoop to<br />&gt;put in a stackless.schedule(). However this approach<br />&gt;does not seem to be the most maintainable or<br />&gt;effective, since I would be overriding MainLoop only<br />&gt;to put in one line. What is the proper Twisted<br />&gt;approach to doing this?<br /><br />Don't implement a reactor :).<br /><br />I recently replied to a very similar question in a different thread:<br /><br />&#160; &#160; http://article.gmane.org/gmane.comp.python.twisted/13946<br /><br />What about my answer there was not clear?<br /></body></html>