[Python-Dev] PEP 318: Decorators last before colon

Guido van Rossum guido at python.org
Tue Mar 30 18:43:46 EST 2004


> Hm.  So if we reversed the order so that the outermost decorators (such as 
> classmethod) come first in the list, would that sway you to relent in favor 
> of decorators-after-arguments?

Not really, because they're still hidden behind the argument list.

> I don't like the reversed order, but I think I'd be a lot more
> comfortable with explaining that relatively minor semantic oddity to
> other developers than I would be with trying to explain the major
> syntactic oddity (relative to the rest of the Python language) of
> decorators-before-def.

OTOH to C# programmers you won't have to explain a thing, because
that's what C# already does.

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



More information about the Python-Dev mailing list