Re: Method Delegation To Subinstances

2006-05-28 Thread Cloudthunder
I could then fill the getattr function with different conditional statements as needed, cool. Thanks Steve!On 5/27/06, Steve Holden < [EMAIL PROTECTED]> wrote:Cloudthunder wrote:> In the example:> > class Boo:> def __init__(self, parent):> self.parent = parent> print self.parent

Re: Method Delegation To Subinstances

2006-05-27 Thread Steve Holden
Cloudthunder wrote: > In the example: > > class Boo: > def __init__(self, parent): > self.parent = parent > print self.parent.testme > def run(): > print "Yaho!" > > class Foo: > testme = "I love you!" > def __init__(self): > test = Boo(self) >

Re: Method Delegation To Subinstances

2006-05-23 Thread Cloudthunder
In the example:class Boo:    def __init__(self, parent):    self.parent = parent    print self.parent.testme    def run():    print "Yaho!" class Foo:    testme = "I love you!"     def __init__(self):    test = Boo(self)A = Foo()How can I set up method delegation so that I can d

Method Delegation To Subinstances

2006-05-23 Thread Cloudthunder
In the example:class Boo:    def __init__(self, parent):    self.parent = parent    print self.parent.testme    def run():    print "Yaho!"class Foo:    testme = "I love you!"     def __init__(self):    test = Boo(self)A = Foo()How can I set up method delegation so that I can do