[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