[Python-Dev] method decorators (PEP 318) (original) (raw)
Walter Dörwald walter.doerwald at livinglogic.de
Fri Mar 26 12:04:58 EST 2004
- Previous message: [Python-Dev] method decorators (PEP 318)
- Next message: [Python-Dev] method decorators (PEP 318)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] method decorators (PEP 318)
- Next message: [Python-Dev] method decorators (PEP 318)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]