[Python-Dev] Re: PEP 318: Decorators last before colon (original) (raw)

Mark Russell marktrussell at btopenworld.com
Mon Apr 5 13:00:34 EDT 2004


On Mon, 2004-04-05 at 17:44, Guido van Rossum wrote:

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

Would it not be possible to cheat and make the lexer transform

"[" WHITESPACE "as" WHITESPACE IDENTIFIER 

into an LBRACE-AS token (which I assume would make the parser's job simple).

Mark



More information about the Python-Dev mailing list