File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Grammar for Python, version 10
22
33# Changes since version 9:
4- # Equality is now only tested with '=='; consequently
5- # Exprlist replaced by testlist everywhere except after 'for'
4+ # Equality is now only tested with '=='
65
76# Changes since version 8:
87# Trailing commas in formal parameter lists are allowed
@@ -64,7 +63,7 @@ fpdef: NAME | '(' fplist ')'
6463stmt: simple_stmt | compound_stmt
6564simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE
6665small_stmt: expr_stmt | print_stmt | del_stmt | pass_stmt | flow_stmt | import_stmt | global_stmt
67- expr_stmt: (testlist '=')* testlist
66+ expr_stmt: (exprlist '=')* exprlist
6867# For assignments, additional restrictions enforced by the interpreter
6968print_stmt: 'print' (test ',')* [test]
7069del_stmt: 'del' exprlist
You can’t perform that action at this time.
0 commit comments