[Twisted-Python] newbe twisted xmpp load

Jean-Paul Calderone exarkun at divmod.com
Fri Mar 9 16:52:20 EST 2007

On Fri, 9 Mar 2007 16:34:47 -0500, Wrene Robyn <wrobyn at cox.net> wrote:
>and for some reason from twisted.words.protocols.jabber.jid
>imports reactor but doesnt use it as far as I can tell, that caused  the 
>below code to fail if you imported pollreactor.
>Still would love to see an example of the below code converted to use 

Easy, just import pollreactor first.

>On Mar 9, 2007, at 7:04 AM, Wrene Robyn wrote:
>>Yes I am on os X. Could you show me how to convert my code below to  use 
>>poll? Thanks!

from twisted.internet import pollreactor

>>[mport sys
>>import socket
>>import time
>>import resource
>>from threading import Thread
>>from twisted.words.protocols.jabber import client, jid
>>from twisted.words.xish import domish
>>from twisted.internet import reactor


More information about the Twisted-Python mailing list