Re: Help with the AST re decorators
Neil Schemenauer <[email protected]> Fri, 1 Apr 2005 19:03:26 -0700
| Newsgroups | gmane.comp.python.compiler |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Apr 01, 2005 at 06:57:26PM -0700, Neil Schemenauer wrote:
> This is what I currently have:
>
> stmt = FunctionDef(decorator* decorators, identifier name,
> arguments args, stmt* body)
> | ...
>
> decorator = (identifier name, arglist* args)
>
>
> arglist = ArgList(expr* args, keyword* keywords, expr? starargs,
> expr? kwargs)
Argh, I should have included Call instead of FunctionDef:
expr = Call(expr func, arglist args)
| ...
Sorry.
Neil