Re: [Python-Dev] Adding functools.decorator

April 30, 2006
2:32 p.m.
Nick Coghlan wrote:
Some details that are up for discussion:
- which of a function's special attributes should be copied/updated? - should the __decorates__ and __decorator__ attributes be added?
If people are happy with this idea, I can make sure it happens before > alpha 3.
What about preserving decorated function's signature, like we do in TurboGears [1]? Cheers, Simon [1] http://trac.turbogears.org/turbogears/browser/trunk/turbogears/decorator.py
6869
Age (days ago)
6869
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Belak