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

[Python-Dev] method decorators (PEP 318)

[Python-Dev] method decorators (PEP 318) [Python-Dev] method decorators (PEP 318)Kevin Jacobs jacobs at theopalgroup.com
Fri Mar 26 18:25:26 EST 2004
Guido van Rossum wrote:

>[Walter Doerwald]
>  
>
>>For me '@' looks like something that the compiler shouldn't see.
>>    
>>
>
>I don't understand.  Why?  Is that what @ means in other languages?
>Not in JDK 1.5 -- the compiler definitely sees it.
>  
>

Gack!  @ is ugly as sin to me.  Why not allow function attributes as 
keyword arguments
using the decorator syntax.  e.g.,

  def foo(self, a) [classmethod, precondition=predicate1, 
postcondition=predicate2,
                                             bnf= 'FOO := left op right']:
     pass


Thoughts?

-Kevin


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