On Jan 28, 10:27 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> > I've modified my little decorator (see Test1, Test2, Test3 for
> > usage).  I'll post it later on the cookbook if there seems to be no
> > bugs and noone raises valid point against it:)
>
> One other area that was mentioned obliquely:  preservation of
> docstrings (and other function attributes)

I think @wraps(...) does this (definitely copies __doc__).

--
Arnaud
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to