[Python-Dev] Adding functools.decorator

Simon Belak simon.belak at gmail.com
Sun Apr 30 16:32:03 CEST 2006


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


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /