diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-05-05 20:16:41 -0400 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-05-05 20:16:41 -0400 |
commit | 025e9ebd0a0a19f50ca83af6ada0ac65be1fa2a1 (patch) | |
tree | d769adcb6d4a557a00923f18ed2b0ca8b515a473 /Parser | |
parent | 4ccc1514d070cabe80e8cfa0469dc03c12d08be2 (diff) | |
download | cpython-git-025e9ebd0a0a19f50ca83af6ada0ac65be1fa2a1.tar.gz |
PEP 448: additional unpacking generalizations (closes #2292)
Patch by Neil Girdhar.
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/Python.asdl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl index adb55aa5c2..5476c53765 100644 --- a/Parser/Python.asdl +++ b/Parser/Python.asdl @@ -14,8 +14,6 @@ module Python | ClassDef(identifier name, expr* bases, keyword* keywords, - expr? starargs, - expr? kwargs, stmt* body, expr* decorator_list) | Return(expr? value) @@ -64,8 +62,7 @@ module Python -- need sequences for compare to distinguish between -- x < 4 < 3 and (x < 4) < 3 | Compare(expr left, cmpop* ops, expr* comparators) - | Call(expr func, expr* args, keyword* keywords, - expr? starargs, expr? kwargs) + | Call(expr func, expr* args, keyword* keywords) | Num(object n) -- a number as a PyObject. | Str(string s) -- need to specify raw, unicode, etc? | Bytes(bytes s) @@ -109,8 +106,8 @@ module Python arg = (identifier arg, expr? annotation) attributes (int lineno, int col_offset) - -- keyword arguments supplied to call - keyword = (identifier arg, expr value) + -- keyword arguments supplied to call (NULL identifier for **kwargs) + keyword = (identifier? arg, expr value) -- import name with optional 'as' alias. alias = (identifier name, identifier? asname) |