[Twisted-Python] Simple Epoll Reactor question

Cary Hull cary.hull at gmail.com
Sat Jul 18 13:00:46 MDT 2009


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_ice at 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 at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python



--
01100011 01100001 01110010 01111001




More information about the Twisted-Python mailing list