Re: Signature-preserving decorators

2011-12-13 Thread Ian Kelly
On Tue, Dec 13, 2011 at 6:36 AM, Henrik Faber wrote: > Hi group, > > when decorating a method in Python3, by use of the > functools.update_wrapper function, it can be achieved that the docstring > and name of the original function is preseverved. > > However, the prototype is lost: When looking in

Signature-preserving decorators

2011-12-13 Thread Henrik Faber
Hi group, when decorating a method in Python3, by use of the functools.update_wrapper function, it can be achieved that the docstring and name of the original function is preseverved. However, the prototype is lost: When looking into the Python help, I have lots of entries that look like: getfoo