[Twisted-Python] win32eventreactor

Thomas Heller theller at python.net
Wed Feb 12 13:35:34 MST 2003


How can I access the reactor if I want to use the win32eventreactor?
It seems I have to win32eventreactor.install() before importing
the reactor from twisted.internet, otherwise I get a traceback
saying AssertionError: reactor already installed.

Is this the recommended way to do it:

-----
from twisted.internet import win32eventreactor
win32eventreactor.install()
from twisted.internet import reactor

... other stuff

Thanks, Thomas





More information about the Twisted-Python mailing list