[Python-Dev] method decorators (PEP 318)
Guido van Rossum
guido at python.org
Fri Mar 26 13:41:03 EST 2004
> 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",
> .deprecated = True
No, I want to reserve the leading dot for attribute assignment to a
special object specified by a 'with' statement, e.g.
.foo = [1, 2, 3]
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev