[Twisted-Python] Global reactor unit tests in the Twisted test suite
Glyph Lefkowitz
glyph at twistedmatrix.com
Mon Nov 7 22:44:44 MST 2011
On Nov 7, 2011, at 10:25 AM, exarkun at twistedmatrix.com wrote:
>> reactor = getUtility(IReactor)?
>
> That's not really a solution. It's the barest glimpse of a large system which might be applied as a solution. Do you want to expand it?
I'd like to echo this request for exposition. My understanding is that 'getUtility' is just a baroque way to access a global variable, with most of the disadvantages of said globalness intact. What does it provide that our existing import strategy doesn't?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20111107/e825027d/attachment-0001.html>
More information about the Twisted-Python
mailing list