[Python-Dev] Semantics of decorators? (original) (raw)
Edward C. Jones edcjones at erols.com
Wed Aug 11 17:05:02 CEST 2004
- Previous message: [Python-Dev] Re: Re: Decimal type question [Prothon]
- Next message: [Python-Dev] Semantics of decorators?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In the development docs, Python Reference Manual, 7.5, it says:
A function definition may be wrapped by one or more decorator expressions. Decorator expressions are evaluated when the function is defined, in the scope that contains the function definition. The result must be a callable, which is invoked with the function object as the only argument. The returned value is bound to the function name instead of the function object. If there are multiple decorators, they are applied in reverse order.
Does this completely describe the semantics of decorators?
- Previous message: [Python-Dev] Re: Re: Decimal type question [Prothon]
- Next message: [Python-Dev] Semantics of decorators?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]