On 01:05 pm, [EMAIL PROTECTED] wrote:
On Wed, 5 Nov 2008 17:41:44 +1100, Andrew Bennetts <andrew- [EMAIL PROTECTED]> wrote:

It matters just because it makes it clear that yes, 1Cfrom twisted.internet
import reactor 1D really does Just Work, all the time.

Sure.  But even if it didn't, you'd be alright.

Plus, parameterized reactor makes unit testing easier.

As with most things that make testing easier, parameterizing the reactor makes a lot of other things easier too. My long-term plan (very, very long term) is to deprecate and remove the twisted.internet.reactor import and eliminate the singleton. However, that won't happen until you can get the reactor from everywhere interesting that might need it. See ticket http://twistedmatrix.com/trac/ticket/3205 for more information.

_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web

Reply via email to