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
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)
>
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
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