Loading blib2to3/Grammar.txt +1 −1 Changes for blib2to3/Grammar.txt: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -108,7 +108,7 @@ assert_stmt: 'assert' test [',' test] compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | classdef | decorated | async_stmt async_stmt: ASYNC (funcdef | with_stmt | for_stmt) if_stmt: 'if' namedexpr_test ':' suite ('elif' namedexpr_test ':' suite)* ['else' ':' suite] while_stmt: 'while' test ':' suite ['else' ':' suite] while_stmt: 'while' namedexpr_test ':' suite ['else' ':' suite] for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite] try_stmt: ('try' ':' suite ((except_clause ':' suite)+ Loading tests/data/pep_572.py +3 −0 Changes for tests/data/pep_572.py: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -38,3 +38,6 @@ def foo(answer: (p := 42) = 5): foo(b := 2, a=1) foo((b := 2), a=1) foo(c=(b := 2), a=1) while x:= f(x): pass Loading
blib2to3/Grammar.txt +1 −1 Changes for blib2to3/Grammar.txt: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -108,7 +108,7 @@ assert_stmt: 'assert' test [',' test] compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | classdef | decorated | async_stmt async_stmt: ASYNC (funcdef | with_stmt | for_stmt) if_stmt: 'if' namedexpr_test ':' suite ('elif' namedexpr_test ':' suite)* ['else' ':' suite] while_stmt: 'while' test ':' suite ['else' ':' suite] while_stmt: 'while' namedexpr_test ':' suite ['else' ':' suite] for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite] try_stmt: ('try' ':' suite ((except_clause ':' suite)+ Loading
tests/data/pep_572.py +3 −0 Changes for tests/data/pep_572.py: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -38,3 +38,6 @@ def foo(answer: (p := 42) = 5): foo(b := 2, a=1) foo((b := 2), a=1) foo(c=(b := 2), a=1) while x:= f(x): pass