[Python-Dev] PEP 318: Decorators last before colon (original) (raw)
Jeremy Hylton jeremy at alum.mit.edu
Wed Mar 31 21:58:44 EST 2004
- Previous message: [Python-Dev] PEP 318: Decorators last before colon
- Next message: [Python-Dev] PEP 318: Decorators last before colon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] PEP 318: Decorators last before colon
- Next message: [Python-Dev] PEP 318: Decorators last before colon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]