[Python-Dev] Re: decorators and 2.4

David Abrahams dave at boost-consulting.com
Thu Jun 24 10:35:31 EDT 2004


Anthony Baxter <anthony at interlink.com.au> writes:

> Channelling Guido, via his EP keynote
> (http://www.python.org/doc/essays/ppt/euro2004/euro2004.ppt)
> I'm assuming that "Java-style" is something like:
>
> @staticmethod
> def blah(args):
>      body
>
> @funcattrs(vegetable="blah", author="GvR")
> def blah2(args):
>      body
>
> It's not clear to me how you'd specify multiple decorators this
> way, perhaps Guido can give more details...
>
> So, let the floodgates open. Remember, we _can_ change this any
> time up until 2.4b1, if there's a decision that the chosen form
> sucks. :-)

I'd love to discuss this, but channelling Brett channelling Guido,

> I think Guido has said no more syntax ideas on this one.  It's
> either before the 'def', after the argument list, or like Java 1.5 .

Are you really interested in more syntax ideas, Guido?

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com




More information about the Python-Dev mailing list