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

[Python-Dev] method decorators (PEP 318)

[Python-Dev] method decorators (PEP 318)Walter Dörwald walter.doerwald at livinglogic.de
Fri Mar 26 12:04:58 EST 2004
Guido van Rossum wrote:

> [...]
>   def foobar(self, arg):
>       @author: AuthorInfo(author="GvR", version="1.0", copyright="GPL", ...)
>       @deprecated: True
> 
> I could also see using '=' instead of ':':
> 
>   def foobar(self, arg):
>       @author = AuthorInfo(author="GvR", version="1.0", copyright="GPL", ...)
>       @deprecated = True

For me '@' looks like something that the compiler shouldn't see.
How about:

   def foobar(self, arg):
       .author = AuthorInfo(author="GvR", version="1.0", 
copyright="GPL", ...)
       .deprecated = True

Bye,
    Walter Dörwald



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