On Tue, Nov 4, 2014 at 1:01 PM, Roberto Martínez <robertomartin...@gmail.com
> wrote:

> The workaround of calling a different method inside __call__ is not valid
> for my case because I want to change the *signature* of the function also
> -for introspection reasons.


You could define __call__ like so:

def __call__(self, *args, **kwds):
    self._my_call(*args, **kwds)

then set self._my_call at runtime.

Skip
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to