On Apr 7, 2:53 am, "R. David Murray" <rdmur...@bitdance.com> wrote:
> I think the OO way to do this is to provide a method on A that does the > right thing: > > def Bfoo_func(self): > self.B.foo_func(self) > > Or maybe you could look at generic methods, which provide a way > to do multiple dispatch. +1 Which dispatch would itself be using methods to pass 'self' to the receiving object. Yes this would seem to be the obvious way to establish two-way communication between objects. I would be so bold as to suggest that if the design the OP has adopted is not amenable to this straightfoward approach, the design needs to be reassessed. -- http://mail.python.org/mailman/listinfo/python-list