Encapsulate a weak reference to a method of a _TopicTreeNode in such a way that the method can be called, if the node is still alive, but the callback does not keep the node alive. Also, define two methods, preNotify() and noNotify(), which can be redefined to something else, very useful for testing.
__init__ | |
noNotify | Gets called if the _TopicTreeNode for this callback is dead |
preNotify | ‘Gets called just before our callback (self.objRef) is called |
Encapsulate a weak reference to a method of a _TopicTreeNode in such a way that the method can be called, if the node is still alive, but the callback does not keep the node alive. Also, define two methods, preNotify() and noNotify(), which can be redefined to something else, very useful for testing.
Gets called if the _TopicTreeNode for this callback is dead
‘Gets called just before our callback (self.objRef) is called