[EMAIL PROTECTED] a écrit :
> As you mention, wether the methods take arguments or not is something
> to have into account.
> 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.

Nope. Defining __getattr__ is the canonical pythonic way to do 
delegation. Remember that in Python, functions and methods are objects 
too and can be passed around/returned etc just like any other object.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to