py3k feature proposal: field auto-assignment in constructors
Arnaud Delobelle
arnodel at googlemail.com
Mon Jan 28 17:44:27 EST 2008
On Jan 28, 10:27 pm, Tim Chase <python.l... at tim.thechases.com> 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
More information about the Python-list
mailing list