From: Pit Capitain Date: 2007-07-22T21:56:53+09:00 Subject: Re: Overriding delegated methods 2007/7/21, Jesse Merriman : > I'm trying to use SimpleDelegator, but am having a problem overring a method. > (... example: B delegates to A, A should call back to B ...) > Is there a good way to do this? Since I'm > changing the delegated object with __setobj__, subclassing won't work, and I'd > rather not have to override all methods that call overridden methods. Jesse, can you tell us a bit more of what you are trying to achieve? For example, in the lifetime of a B instance, how often do you change the delegate? Do you want the set of delegated methods to change when changing the delegate, or is there a fixed set of methods to be delegated from B to the delegate? Can you change the source code of the delegate? Do you need to create instances of the delegate classes independent of B? Regards, Pit