diff options
author | Ivan Levkivskyi <levkivskyi@gmail.com> | 2019-01-25 01:39:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-25 01:39:19 (GMT) |
commit | 62c35a8a8ff5854ed470b1c16a7a14f3bb80368c (patch) | |
tree | c9fbcd76316803a7d1272301a64a3c3ea233d2bd /Grammar | |
parent | 1396d8fab4d0ae830d45f4937322bbb43ce0c30e (diff) | |
download | cpython-62c35a8a8ff5854ed470b1c16a7a14f3bb80368c.zip cpython-62c35a8a8ff5854ed470b1c16a7a14f3bb80368c.tar.gz cpython-62c35a8a8ff5854ed470b1c16a7a14f3bb80368c.tar.bz2 |
bpo-35814: Allow same r.h.s. in annotated assignments as in normal ones (GH-11667)
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 f21fa11..8455c12 100644 --- a/Grammar/Grammar +++ b/Grammar/Grammar @@ -40,7 +40,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))*) -annassign: ':' test ['=' test] +annassign: ':' test ['=' (yield_expr|testlist)] testlist_star_expr: (test|star_expr) (',' (test|star_expr))* [','] augassign: ('+=' | '-=' | '*=' | '@=' | '/=' | '%=' | '&=' | '|=' | '^=' | '<<=' | '>>=' | '**=' | '//=') |