A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-August/047675.html below:

[Python-Dev] Semantics of decorators?

[Python-Dev] Semantics of decorators? [Python-Dev] Semantics of decorators?Jp Calderone exarkun at divmod.com
Thu Aug 12 05:07:21 CEST 2004
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 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?
> 

   One thing it omits is what "decorator expressions" means.  How about 
including a note regarding the kind of expressions which are acceptable?

   Jp
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4