diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-09-03 14:29:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 14:29:32 (GMT) |
commit | 315a61f7a9418d904e0eea14b1f054fac3a90e9f (patch) | |
tree | 621d8d728f29ec583fdda94e262182129fe81a15 /Grammar | |
parent | 851606007665dc30089e5e1953208c5428e455b1 (diff) | |
download | cpython-315a61f7a9418d904e0eea14b1f054fac3a90e9f.zip cpython-315a61f7a9418d904e0eea14b1f054fac3a90e9f.tar.gz cpython-315a61f7a9418d904e0eea14b1f054fac3a90e9f.tar.bz2 |
bpo-41697: Correctly handle KeywordOrStarred when parsing arguments in the parser (GH-22077)
Diffstat (limited to 'Grammar')
-rw-r--r-- | Grammar/python.gram | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/python.gram b/Grammar/python.gram index 84835b7..524e88e 100644 --- a/Grammar/python.gram +++ b/Grammar/python.gram @@ -535,7 +535,7 @@ arguments[expr_ty] (memo): | a=args [','] &')' { a } | incorrect_arguments args[expr_ty]: - | a=','.(starred_expression | named_expression !'=')+ b=[',' k=kwargs {k}] { _PyPegen_collect_call_seqs(p, a, b) } + | a=','.(starred_expression | named_expression !'=')+ b=[',' k=kwargs {k}] { _PyPegen_collect_call_seqs(p, a, b, EXTRA) } | a=kwargs { _Py_Call(_PyPegen_dummy_name(p), CHECK_NULL_ALLOWED(_PyPegen_seq_extract_starred_exprs(p, a)), CHECK_NULL_ALLOWED(_PyPegen_seq_delete_starred_exprs(p, a)), |