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-March/043713.html below:

[Python-Dev] PEP 318: Decorators last before colon

[Python-Dev] PEP 318: Decorators last before colon [Python-Dev] PEP 318: Decorators last before colonJeremy Hylton jeremy at alum.mit.edu
Tue Mar 30 14:18:26 EST 2004
On Tue, 2004-03-30 at 06:17, Ka-Ping Yee wrote:
> Three different positions for decorators have been suggested:
> 
>     (a) def [decorator] func(arg, arg):
> 
>     (b) def func [decorator] (arg, arg):
> 
>     (c) def func(arg, arg) [decorator]:

Another possibility that has been suggested is

[decorator] 
def func(arg, arg):

This has some of the same readability benefits as (c).

Jeremy



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