[Twisted-Python] Discovering Twisted : reactor.stop()

Jean-Paul Calderone exarkun at divmod.com
Thu Sep 27 04:45:54 MDT 2007


On Thu, 27 Sep 2007 12:25:02 +0200, Steve MULLER <thoma.hauc at gmail.com> wrote:
>Hello,
>
>I discovered Python recently and even more recently the Twisted module.
>
>I have a problem with the Twisted reactor and I would like to understand for
>which reason my program freezes.
>
> [snip]
>
>
>Thus I start first once the reactor, I stop it then I start again and it
>freezes instead of stopping it the reactor.
>
>Could somebody explain me it why?
>

None of the reactors implemented in Twisted are restartable.  You can call
each of start and stop at most once.

Jean-Paul




More information about the Twisted-Python mailing list