[EMAIL PROTECTED] wrote: > And they do take arguments, and a variable number of them, so AFAIK > hooking with __getattr__ or __getattribute__ will not work, as you can > only get the method name with that.
why not just return the bound method *object* (a callable), and let the caller call that as usual (see Terry's last example). (hint: x.foo() can be written f=getattr(x,"foo"); f()) </F> -- http://mail.python.org/mailman/listinfo/python-list