Re: decorator module in stdlib?

2009-04-07 Thread Michele Simionato
On Apr 7, 7:57 am, Daniel Fetchinson fetchin...@googlemail.com wrote: have always seen the decorator module as a temporary hack waiting for a proper solution at the language level. I wanted the possibility to modify the signature of a function. Everybody more or less agreed that this was

decorator module in stdlib?

2009-04-06 Thread Daniel Fetchinson
The decorator module [1] written by Michele Simionato is a very useful tool for maintaining function signatures while applying a decorator. Many different projects implement their own versions of the same functionality, for example turbogears has its own utility for this, I guess others do

Re: decorator module in stdlib?

2009-04-06 Thread Chris Rebert
On Mon, Apr 6, 2009 at 5:41 PM, Daniel Fetchinson fetchin...@googlemail.com wrote: The decorator module [1] written by Michele Simionato is a very useful tool for maintaining function signatures while applying a decorator. Many different projects implement their own versions of the same

Re: decorator module in stdlib?

2009-04-06 Thread Michele Simionato
On Apr 7, 2:50 am, Chris Rebert c...@rebertia.com wrote: Similar functionality is already provided by functools.update_wrapper() and functools.wraps(). Seehttp://docs.python.org/library/functools.html You might consider proposing the modification of these functions instead. Unfortunately

Re: decorator module in stdlib?

2009-04-06 Thread Daniel Fetchinson
Similar functionality is already provided by functools.update_wrapper() and functools.wraps(). Seehttp://docs.python.org/library/functools.html You might consider proposing the modification of these functions instead. Unfortunately functools.update_wrapper() and functools.wraps() are NOT