Mercurial > cpython-lru_cache-weakref
diff Include/Python-ast.h @ 39782:c94f37054f19
Patch #1550800: make exec a function.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Wed, 06 Sep 2006 06:51:57 +0000 |
| parents | d0b83c4630c0 |
| children | 7a0ad110e91e |
line wrap: on
line diff
--- a/Include/Python-ast.h Thu Aug 31 21:45:56 2006 +0000 +++ b/Include/Python-ast.h Wed Sep 06 06:51:57 2006 +0000 @@ -64,8 +64,8 @@ For_kind=8, While_kind=9, If_kind=10, With_kind=11, Raise_kind=12, TryExcept_kind=13, TryFinally_kind=14, Assert_kind=15, Import_kind=16, ImportFrom_kind=17, - Exec_kind=18, Global_kind=19, Expr_kind=20, Pass_kind=21, - Break_kind=22, Continue_kind=23}; + Global_kind=18, Expr_kind=19, Pass_kind=20, Break_kind=21, + Continue_kind=22}; struct _stmt { enum _stmt_kind kind; union { @@ -165,12 +165,6 @@ } ImportFrom; struct { - expr_ty body; - expr_ty globals; - expr_ty locals; - } Exec; - - struct { asdl_seq *names; } Global; @@ -384,8 +378,6 @@ stmt_ty Import(asdl_seq * names, int lineno, int col_offset, PyArena *arena); stmt_ty ImportFrom(identifier module, asdl_seq * names, int level, int lineno, int col_offset, PyArena *arena); -stmt_ty Exec(expr_ty body, expr_ty globals, expr_ty locals, int lineno, int - col_offset, PyArena *arena); stmt_ty Global(asdl_seq * names, int lineno, int col_offset, PyArena *arena); stmt_ty Expr(expr_ty value, int lineno, int col_offset, PyArena *arena); stmt_ty Pass(int lineno, int col_offset, PyArena *arena);
