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

[Python-Dev] Yet Another Decorator Syntax Suggestion (YADSS)

[Python-Dev] Yet Another Decorator Syntax Suggestion (YADSS) [Python-Dev] Yet Another Decorator Syntax Suggestion (YADSS)Robert Brewer fumanchu at amor.org
Mon Mar 29 12:45:24 EST 2004
Mike Thompson wrote:
> I propose that the 'as' keyword be used together with whitespace 
> indentation before the 'def' to *optionally* decorate the 
> def, something like this:
> 
>      as:
>          classmethod
>      def func(arg):
>          pass
> 
> Damn. I just re-read PEP-318 and found it included a syntax 
> similar to 
> that which I propose. Something from Quixote which uses 
> 'using' where I have used 'as'.

I've been +1 on this solution (or a variant of it ;) for some time now.
>From a readability standpoint, I think it wins hands-down. Until someone
demonstrates it's technically impossible... <wink> it gets my vote. I'd
want something other than 'as', however. Crazy thought: how about
'decorator'?


Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org

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