[Twisted-web] Nevow importing reactor?

Phil Mayers p.mayers at imperial.ac.uk
Tue Jul 26 07:50:58 MDT 2005

Is this bad?


Twisted says:


"""IMPORTANT: installing a reactor should be the first thing done in the 
app, since any code that does from twisted.internet import reactor will 
automatically install the default reactor if the code hasen't already 
installed one."""

It doesn't explicitly state the converse, that the framework should not 
cause a reactor to be installed, but I've seen plenty of code that 
"defers" importing twisted.internet.reactor.

If it's not a bug then ignore, but if it's a trivial fix then...?

More information about the Twisted-web mailing list