In the example:<br><br>class Boo:<br> def __init__(self, parent):<br> self.parent = parent<br> print self.parent.testme<br> def run():<br> print "Yahooooo!"<br><br>class Foo:<br> testme = "I love you!"
<br> def __init__(self):<br> test = Boo(self)<br><br>A = Foo()<br><br><br>How can I set up method delegation so that I can do the following:<br><br>A.run()<br><br>and have this call refer to the run() method within the boo instance? Also, what if I have tons of functions like run() within the boo instance and I want all them to be directly accessible as if they were part of their parent (the Foo instance)?
<br> <br>