(continued from previous page) | term '/' factor | term '//' factor | term '%' factor | term '@'factor | factor factor: | '+' factor | '-' factor | '~'factor | power power: | await_primary'**' factor | await_primary await_primary: | AWAIT primary | primary primary: | invalid_primary # must be before 'primay genexp' because of invalid_genexp | primary '.' NAME | primary genexp | primary '(' [ arguments] ')' | primary '['slices ']' | atom slices: | slice !',' | ',' .slice+[','] slice: | [expression] ':' [ expression] [':' [ expression] ] | expression atom: | NAME | 'True' | 'False' | 'None' | '__peg_parser__' | strings | NUMBER | (tuple| group | genexp) | (list | listcomp) | (dict | set | dictcomp | setcomp) | '...' strings: STRING + list: | '[' [ star_named_expressions ] ']' listcomp: | '['named_expression~ for_if_clauses']' tuple: | '(' [ star_named_expression',' [ star_named_expressions ] ] ')' group: | '(' ( yield_expr| named_expression) ')' genexp: | '(' named_expression~ for_if_clauses')' set: '{'star_named_expressions'}' setcomp: | '{'named_expression~ for_if_clauses'}' dict: | '{' [double_starred_kvpairs ] '}' dictcomp: | '{'kvpair for_if_clauses'}' (continues on next page) 113 The Python Language Reference, Release 3.9.5