[Twisted-Python] Other ways to integrate foreign event loops?

glyph at divmod.com glyph at divmod.com
Mon Mar 31 22:17:42 EDT 2008

On 31 Mar, 10:45 pm, nathan.stocks at gmail.com wrote:
>Is there a way to do the opposite of task.coiterate?  I'm using pyglet
>for my UI, which was working great until I upgraded from pyglet 1.0 to
>1.1.  Now for some reason, the pyglet performance tanked.

Twisted's job is to run the main loop; it's best just to let it do that. 
If Pyglet slowed down, it would be best to examine what's gone wrong 
with Pyglet and simply submit a fix for that.

We spoke to Richard Jones about Pyglet/Twisted integration at Chris 
Armstrong's excellent gaming+twisted openspace at PyCon, and I believe 
that some future version of Pyglet will include Twisted integration.  Of 
course, this is just a plan right now, not code, so perhaps your time 
would be better spent contributing this feature to Pyglet, rather than 
turning Twisted inside-out :).

More information about the Twisted-Python mailing list