Re: [Python-Dev] func.update_meta (was: @deprecated)

2005-03-14 Thread Nick Coghlan
Eric Nieuwland wrote: Neat! But please add something to the __doc__ so we can also see it was changed. E.g. self.__doc__ = other.__doc__ + os.linesep + "*** deprecated ***" Decorators that alter the signature, or wish to change the docstring can make their modifications after copying from the

Re: [Python-Dev] func.update_meta (was: @deprecated)

2005-03-14 Thread Eric Nieuwland
Neat! But please add something to the __doc__ so we can also see it was changed. E.g. self.__doc__ = other.__doc__ + os.linesep + "*** deprecated ***" On 12 mrt 2005, at 5:25, Nick Coghlan wrote: I like "update_meta" Patch against current CVS added to SF with the behaviour: def update_meta(sel

[Python-Dev] func.update_meta (was: @deprecated)

2005-03-11 Thread Nick Coghlan
Reinhold Birkenfeld wrote: Nick Coghlan wrote: A utility method on function objects could simplify this: newFunc.update_info(func) +1. This is really good for 90% of all decorator uses. But maybe a better name should be found, perhaps "update_meta". I like "update_meta" Patch against current CVS