Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Decorators not worth the effort

23 views
Skip to first unread message

Jean-Michel Pichavant

unread,
Sep 19, 2012, 8:47:54 AM9/19/12
to Dieter Maurer, pytho...@python.org


----- Original Message -----
> Jean-Michel Pichavant <jeanm...@sequans.com> 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.

JM
0 new messages