A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-April/044091.html below:

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

[Python-Dev] Re: PEP 318: Decorators last before colon [Python-Dev] Re: PEP 318: Decorators last before colonGuido van Rossum guido at python.org
Mon Apr 5 18:09:48 EDT 2004
> presumably the parser could handle this syntax if "as" were a keyword. 

Not really.  The parser is really dumb, it han only handle one
alternative starting with a particular token at any point.  Since '['
can already start an expression and an expression is a valid
statement, anything else also starting with '[', even if it isn't a
valid expression, cannot be accepted.  You may be thinking of Yacc,
which has much more liberal rules.

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


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4