[Python-Dev] PEP 318, a different approach

Guido van Rossum guido at python.org
Fri Apr 16 20:31:07 EDT 2004

> I had a strange idea for decorator syntax.
> def.classmethod func(cls,...):

This would violate the 'greppability' requirement.  It's too nice to
have the name always be the token immediately following 'def' to allow
anything in between the two.

Basically, the only two positions that are still in the race are
before the def, and between the argument list and the colon.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list