Intercepting method calls

Matt Leslie matthewleslie at hotmail.com
Tue Apr 27 15:30:52 EDT 2004


Diez B. Roggisch wrote:

> A way to accomplish this is the usage of metaclasses. A metaclass gives you
> a sort of callback that gets invoked with the classname, the base classes
> and the class dictionary before the actual class object is created. Here
> you then can creat wrappers around all callables that implement your
> desired behaviour.
> 

Thanks, I'll take a look at that.

Ta,
    Matt



More information about the Python-list mailing list