Re: Decorators not worth the effort
----- Original Message -----
> Jean-Michel Pichavant <firstname.lastname@example.org> writes:
> > ----- Original Message -----
> >> Jean-Michel Pichavant wrote:
> > [snip]
> >> One minor note, the style of decorator you are using loses the
> >> docstring
> >> (at least) of the original function. I would add the
> >> @functools.wraps(func)
> >> decorator inside your decorator.
> > Is there a way to not loose the function signature as well ?
> Look at the "decorator" module.
Great, thank you.
|All times are GMT. The time now is 09:02 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.