diff options
| author | Pablo Galindo <Pablogsal@gmail.com> | 2019-06-03 08:34:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-03 08:34:20 +0100 |
| commit | 8565f6b6db0fa9f65449b532a5056a98bad3dc37 (patch) | |
| tree | eeeed2b04e30d603a40efbeb8da748325f5f74c3 /Python | |
| parent | d9677f36fe486e86bb86f2cd59cb7fc3804bdac1 (diff) | |
| download | cpython-git-8565f6b6db0fa9f65449b532a5056a98bad3dc37.tar.gz | |
bpo-35814: Allow unpacking in r.h.s of annotated assignment expressions (GH-13760)
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/ast.c | 2 | ||||
| -rw-r--r-- | Python/graminit.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Python/ast.c b/Python/ast.c index b77552274d..df9242977e 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -3398,7 +3398,7 @@ ast_for_expr_stmt(struct compiling *c, const node *n) } else { ch = CHILD(ann, 3); - if (TYPE(ch) == testlist) { + if (TYPE(ch) == testlist_star_expr) { expr3 = ast_for_testlist(c, ch); } else { diff --git a/Python/graminit.c b/Python/graminit.c index 0587b1c0fc..7c40ce933c 100644 --- a/Python/graminit.c +++ b/Python/graminit.c @@ -742,7 +742,7 @@ static const arc arcs_17_2[2] = { {0, 2}, }; static const arc arcs_17_3[2] = { - {47, 4}, + {81, 4}, {84, 4}, }; static const arc arcs_17_4[1] = { |
