[Twisted-Python] asyncio.reactor.install()
Jean-Paul Calderone
exarkun at twistedmatrix.com
Tue Dec 18 18:18:52 MST 2018
On Tue, Dec 18, 2018 at 7:43 PM Jeff Grimmett <grimmtooth at gmail.com> wrote:
> This pattern works:
>
>
>
> *from twisted.internet import wxreactorreactor = wxreactor.install()*
>
The fact that a reactor is returned by install is a bit of a mistake and is
not really part of the interface of *install.*
For whatever reason, asyncioreactor.install doesn't bother to return the
reactor it creates.
You should do this instead:
from twisted.internet import wxreactor
wxreactor.install()
from twisted.internet import reactor
Or don't do reactor installation yourself at all, use twistd or twist or
some other similar tool.
Jean-Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20181218/2fc2ef4a/attachment-0002.html>
More information about the Twisted-Python
mailing list