A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-March/043866.html below:

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

[Python-Dev] PEP 318: Decorators last before colon [Python-Dev] PEP 318: Decorators last before colonJeremy Hylton jeremy at alum.mit.edu
Wed Mar 31 21:58:44 EST 2004
On Wed, 2004-03-31 at 16:12, Phillip J. Eby wrote:
> At 12:49 PM 3/31/04 -0800, Guido van Rossum wrote:
> >I hadn't thought of those, but the new situation can't be worse than
> >before (decorations following the 'def').  Usually these tools either
> >use some ad-hoc regex-based parsing, which shouldn't have any problems
> >picking out at least the typical forms, or they (hopefully) use the
> >AST produced by the compiler package -- it should be possible for that
> >package to modify the parse tree so that decorators appear as part of
> >the Function node.
> 
> Good point.  Will this be true for the AST branch's AST model as well?

If decorators get added, that's my plan.

Jeremy



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