Why are you commenting out the 'install' line? After 'install' I normally do 'from twisted.internet import reactor' and use 'reactor' as one would normally.
-Cary On Sat, Jul 18, 2009 at 11:41 AM, Andrew Francis <andrewfr_...@yahoo.com> wrote: > > Hi Folks: > > I am trying to use the epollreactor. I read the "Choosing a Reactor" page. > However I am not clear on how to actually install and use epollreactor. > > I thought I could do the following: > > from twisted.internet import epollreactor > > .... > # epollreactor.install() > epollreactor.listenTCP(8000, MyHttpFactory()) > epollreactor.run() > > I get > AttributeError: 'module' object has no attribute 'listenTCP' > > What am I doing wrong? Thanks in advance. > > Cheers, > Andrew > > > > > > > > > > _______________________________________________ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python -- 01100011 01100001 01110010 01111001 _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python