[Python-Dev] Re: PEP 318: Decorators last before colon (original) (raw)
Guido van Rossum guido at python.org
Mon Apr 5 12:44:20 EDT 2004
- Previous message: [Python-Dev] Re: PEP 318: Decorators last before colon
- Next message: [Python-Dev] Re: PEP 318: Decorators last before colon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/)
- Previous message: [Python-Dev] Re: PEP 318: Decorators last before colon
- Next message: [Python-Dev] Re: PEP 318: Decorators last before colon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]