[Twisted-Python] Re: reactor.stop

Christopher Armstrong radeex at gmail.com
Sun Aug 15 23:11:31 MDT 2004


On Mon, 16 Aug 2004 11:39:11 +0800, Tsai Li Ming <mailinglist at ltsai.com> wrote:
> The part that I don't understand is when I import the reactor in my own
> py files, why will it be the same single reactor that the application
> uses. Is it something special that twisted is handling or is just a
> simple python question?

Well, the reactor module is pretty weird and magical, but in this
regard, it acts exactly like any python module. When you import any
module twice, you get the same module.

-- 
 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+            http://radix.twistedmatrix.com




More information about the Twisted-Python mailing list