[Python-Dev] Semantics of decorators?
s.percivall at chello.se
Wed Aug 11 17:23:12 CEST 2004
On 2004-08-11, at 17.05, Edward C. Jones wrote:
> In the development docs, Python Reference Manual, 7.5, it says:
> A function definition may be wrapped by one or more decorator
> Decorator expressions are evaluated when the function is defined, in
> scope that contains the function definition. The result must be a
> which is invoked with the function object as the only argument. The
> value is bound to the function name instead of the function object. If
> are multiple decorators, they are applied in reverse order.
> Does this completely describe the semantics of decorators?
"applied in reverse order" might be a bit ambiguous. Reverse order
to what? To their definition?, to their proximity to the function?
More information about the Python-Dev