diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2019-06-03 07:34:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-03 07:34:20 (GMT) |
commit | 8565f6b6db0fa9f65449b532a5056a98bad3dc37 (patch) | |
tree | eeeed2b04e30d603a40efbeb8da748325f5f74c3 /Grammar | |
parent | d9677f36fe486e86bb86f2cd59cb7fc3804bdac1 (diff) | |
download | cpython-8565f6b6db0fa9f65449b532a5056a98bad3dc37.zip cpython-8565f6b6db0fa9f65449b532a5056a98bad3dc37.tar.gz cpython-8565f6b6db0fa9f65449b532a5056a98bad3dc37.tar.bz2 |
bpo-35814: Allow unpacking in r.h.s of annotated assignment expressions (GH-13760)
Diffstat (limited to 'Grammar')
-rw-r--r-- | Grammar/Grammar | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar index 0cacfb6..21f7e1a 100644 --- a/Grammar/Grammar +++ b/Grammar/Grammar @@ -84,7 +84,7 @@ small_stmt: (expr_stmt | del_stmt | pass_stmt | flow_stmt | import_stmt | global_stmt | nonlocal_stmt | assert_stmt) expr_stmt: testlist_star_expr (annassign | augassign (yield_expr|testlist) | [('=' (yield_expr|testlist_star_expr))+ [TYPE_COMMENT]] ) -annassign: ':' test ['=' (yield_expr|testlist)] +annassign: ':' test ['=' (yield_expr|testlist_star_expr)] testlist_star_expr: (test|star_expr) (',' (test|star_expr))* [','] augassign: ('+=' | '-=' | '*=' | '@=' | '/=' | '%=' | '&=' | '|=' | '^=' | '<<=' | '>>=' | '**=' | '//=') |