Turning a signature-changing decorator into a signature-preserving one
me at gustavonarea.net
Mon Feb 16 10:07:15 EST 2009
On Feb 16, 3:56 pm, Michele Simionato <michele.simion... at gmail.com>
> On Feb 16, 3:50 pm, Gustavo Narea <m... at gustavonarea.net> wrote:
> > On Feb 14, 3:27 pm, Michele Simionato <michele.simion... at gmail.com>
> > wrote:
> > > I lack the context to see how this could be fixed in your case, but
> > > this a not a show stopper, you can just keep the original decorator
> > > and forget about making itsignature preserving.
> > I'm sorry for the possibly dumb question, but how can I do that?
> > Thanks for all the time you've spent on this, Michele.
> > - Gustavo.
> Let the original code as it is. If ain't broken, don't fix it.
But the problem is that it is broken.
That decorator is for controller actions in Pylons-powered web
applications (which are instance methods). Pylons inspects the
action's signature to find what parameters it's going to pass to its
instance method, which fails because my current decorator changes the
More information about the Python-list