[Twisted-Python] Code question - semantic meaning of IServiceCollection(parent, parent)
Jonas Brunsgaard
jonas.brunsgaard at gmail.com
Mon May 26 06:27:48 MDT 2014
Hello all
Will someone explain to me what happens when you call an Interface
with arguments, and why the same argument twice?
My problem is to understand the semantics of the line
parent = IServiceCollection(parent, parent)
part of
def setServiceParent(self, parent):
if self.parent is not None:
self.disownServiceParent()
parent = IServiceCollection(parent, parent)
self.parent = parent
self.parent.addService(self)
in twisted.application.service
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20140526/e541b8d8/attachment.html>
More information about the Twisted-Python
mailing list