Mercurial > cpython-lru_cache-weakref
diff Parser/Python.asdl @ 36695:b6d2f6fd3e11 legacy-trunk
PEP 343 -- the with-statement.
This was started by Mike Bland and completed by Guido
(with help from Neal).
This still needs a __future__ statement added;
Thomas is working on Michael's patch for that aspect.
There's a small amount of code cleanup and refactoring
in ast.c, compile.c and ceval.c (I fixed the lltrace
behavior when EXT_POP is used -- however I had to make
lltrace a static global).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 27 Feb 2006 22:32:47 +0000 |
| parents | 6165927431d6 |
| children | 9f3e58dbea63 |
line wrap: on
line diff
--- a/Parser/Python.asdl Mon Feb 27 21:41:03 2006 +0000 +++ b/Parser/Python.asdl Mon Feb 27 22:32:47 2006 +0000 @@ -25,6 +25,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) -- 'type' is a bad name | Raise(expr? type, expr? inst, expr? tback)
