Re: Decorators not worth the effort
----- Original Message -----
> Jean-Michel Pichavant wrote:
> One minor note, the style of decorator you are using loses the
> (at least) of the original function. I would add the
> decorator inside your decorator.
Is there a way to not loose the function signature as well ?
> spuAgc(self, iterations, backoffTarget, step) method of ...
But once decorated with this:
def inner(self, *args, **kwargs):
rsp = func(self, *args, **kwargs)
result = TncCmnResult()
result.returnCode = self._getReturnCode(rsp)
> t.api.spuAgc(self, *args, **kwargs) method of ....
Quite annoying :-/
|All times are GMT. The time now is 03:29 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.