A RetroSearch Logo

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

Search Query:

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

[Python-Dev] @decorators and PEP 318

[Python-Dev] @decorators and PEP 318 [Python-Dev] @decorators and PEP 318Anthony Baxter anthony at interlink.com.au
Tue Aug 3 04:26:45 CEST 2004
Skip Montanaro wrote:
> I'll be happy to update PEP 318 to conform to the pie decorator syntax.  Can
> someone describe the application order?  If I have
> 
>     @ decorator1
>     @ decorator2
>     def func(...):
>         ...
> 
> Which decorator is applied first to the function object, decorator1 or
> decorator2?

func = decorator1(decorator2(func))

I hope to check in a revised 318 this afternoon.

Anthony
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