[Python-Dev] method decorators (PEP 318) (original) (raw)
Guido van Rossum guido at python.org
Fri Mar 26 13:41:03 EST 2004
- Previous message: [Python-Dev] method decorators (PEP 318)
- Next message: [Python-Dev] Re: method decorators (PEP 318)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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.
How about:
def foobar(self, arg): .author = AuthorInfo(author="GvR", version="1.0", copyright="GPL", ...) .deprecated = True
No, I want to reserve the leading dot for attribute assignment to a special object specified by a 'with' statement, e.g.
with self:
.foo = [1, 2, 3]
.bar(4, .foo)
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] method decorators (PEP 318)
- Next message: [Python-Dev] Re: method decorators (PEP 318)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]