[Python-Dev] Re: method decorators (PEP 318) (original) (raw)

Casey Duncan casey at zope.com
Fri Mar 26 14:05:30 EST 2004


On Fri, 26 Mar 2004 10:41:03 -0800 Guido van Rossum <guido at python.org> wrote:

[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)

Have you been reading the Prothon docs? ;^)

-Casey



More information about the Python-Dev mailing list