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

Guido van Rossum guido at python.org
Mon Apr 5 12:44:20 EDT 2004


> What about:
> 
> 	[as classmethod]
> 	def foo(bar, baz):
> 	    pass
> 
> To me this is more obvious (and less like p*rl) that *[classmethod], and
> it is also currently a syntax error so won't break existing code.

I appreciate the suggestion, but the current parser can't handle that.

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



More information about the Python-Dev mailing list