Mercurial > cpython-lru_cache-weakref
diff Parser/Python.asdl @ 70438:9b11cc4e2918
reflect with statements with multiple items in the AST (closes #12106)
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Fri, 27 May 2011 13:58:08 -0500 |
| parents | 0daa6ba25d9b |
| children | e0e663132363 |
line wrap: on
line diff
--- a/Parser/Python.asdl Fri May 27 16:50:40 2011 +0200 +++ b/Parser/Python.asdl Fri May 27 13:58:08 2011 -0500 @@ -28,7 +28,7 @@ | For(expr target, expr iter, stmt* body, stmt* orelse) | While(expr test, stmt* body, stmt* orelse) | If(expr test, stmt* body, stmt* orelse) - | With(expr context_expr, expr? optional_vars, stmt* body) + | With(withitem* items, stmt* body) | Raise(expr? exc, expr? cause) | TryExcept(stmt* body, excepthandler* handlers, stmt* orelse) @@ -115,5 +115,7 @@ -- import name with optional 'as' alias. alias = (identifier name, identifier? asname) + + withitem = (expr context_expr, expr? optional_vars) }
