diff options
author | Georg Brandl <georg@python.org> | 2006-09-06 06:51:57 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-09-06 06:51:57 +0000 |
commit | 9a1e3897d7462eecdb69109bcc675a88981b4161 (patch) | |
tree | d512d90b1e7a26e5edca36a6951183101433b7fd /Grammar | |
parent | 4b606587eaa5b3f207bbd0013d554e6c747c4de4 (diff) | |
download | cpython-9a1e3897d7462eecdb69109bcc675a88981b4161.tar.gz |
Patch #1550800: make exec a function.
Diffstat (limited to 'Grammar')
-rw-r--r-- | Grammar/Grammar | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar index 2e964f2255..281ae6b711 100644 --- a/Grammar/Grammar +++ b/Grammar/Grammar @@ -32,7 +32,7 @@ fplist: fpdef (',' fpdef)* [','] stmt: simple_stmt | compound_stmt simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE small_stmt: (expr_stmt | print_stmt | del_stmt | pass_stmt | flow_stmt | - import_stmt | global_stmt | exec_stmt | assert_stmt) + import_stmt | global_stmt | assert_stmt) expr_stmt: testlist (augassign (yield_expr|testlist) | ('=' (yield_expr|testlist))*) augassign: ('+=' | '-=' | '*=' | '/=' | '%=' | '&=' | '|=' | '^=' | @@ -58,7 +58,6 @@ import_as_names: import_as_name (',' import_as_name)* [','] dotted_as_names: dotted_as_name (',' dotted_as_name)* dotted_name: NAME ('.' NAME)* global_stmt: 'global' NAME (',' NAME)* -exec_stmt: 'exec' expr ['in' test [',' test]] assert_stmt: 'assert' test [',' test] compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | classdef |