<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 4, 2014 at 1:01 PM, Roberto Martínez <span dir="ltr"><<a href="mailto:robertomartinezp@gmail.com" target="_blank">robertomartinezp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.</blockquote></div><br>You could define __call__ like so:</div><div class="gmail_extra"><br></div><div class="gmail_extra">def __call__(self, *args, **kwds):</div><div class="gmail_extra">    self._my_call(*args, **kwds)</div><div class="gmail_extra"><br></div><div class="gmail_extra">then set self._my_call at runtime.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Skip</div><div class="gmail_extra"><br></div></div>