Author: Raffael Tfirst <raffael.tfi...@gmail.com>
Branch: py3.5
Changeset: r84630:e5e789aeea5b
Date: 2016-05-23 19:03 +0200
http://bitbucket.org/pypy/pypy/changeset/e5e789aeea5b/

Log:    Allow unpack for keyword args in dict or set in Grammar

diff --git a/pypy/interpreter/pyparser/data/Grammar3.5 
b/pypy/interpreter/pyparser/data/Grammar3.5
--- a/pypy/interpreter/pyparser/data/Grammar3.5
+++ b/pypy/interpreter/pyparser/data/Grammar3.5
@@ -119,12 +119,12 @@
 sliceop: ':' [test]
 exprlist: (expr|star_expr) (',' (expr|star_expr))* [',']
 testlist: test (',' test)* [',']
-dictorsetmaker: ( (test ':' test (comp_for | (',' test ':' test)* [','])) |
-                  (test (comp_for | (',' test)* [','])) )
-#dictorsetmaker: ( ((test ':' test | '**' expr)
-#                   (comp_for | (',' (test ':' test | '**' expr))* [','])) |
-#                  ((test | star_expr)
-#                   (comp_for | (',' (test | star_expr))* [','])) )
+#dictorsetmaker: ( (test ':' test (comp_for | (',' test ':' test)* [','])) |
+#                  (test (comp_for | (',' test)* [','])) )
+dictorsetmaker: ( ((test ':' test | '**' expr)
+                   (comp_for | (',' (test ':' test | '**' expr))* [','])) |
+                  ((test | star_expr)
+                   (comp_for | (',' (test | star_expr))* [','])) )
 
 classdef: 'class' NAME ['(' [arglist] ')'] ':' suite
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to