@@ -154,7 +154,7 @@ The :keyword:`for` statement is used to iterate over the elements of a sequence
154154(such as a string, tuple or list) or other iterable object:
155155
156156.. productionlist :: python-grammar
157- for_stmt: "for" `target_list ` "in" `starred_list ` ":" `suite `
157+ for_stmt: "for" `target_list ` "in" `! starred_list ` ":" `suite `
158158 : ["else" ":" `suite `]
159159
160160The ``starred_list `` expression is evaluated once; it should yield an
@@ -608,9 +608,9 @@ The match statement is used for pattern matching. Syntax:
608608
609609.. productionlist :: python-grammar
610610 match_stmt: 'match' `subject_expr ` ":" NEWLINE INDENT `case_block`+ DEDENT
611- subject_expr: `star_named_expression ` "," `star_named_expressions `?
612- : | `named_expression `
613- case_block: 'case' `patterns ` [`guard `] ":" `block `
611+ subject_expr: `! star_named_expression ` "," `! star_named_expressions `?
612+ : | `! named_expression `
613+ case_block: 'case' `patterns ` [`guard `] ":" `! block `
614614
615615.. note ::
616616 This section uses single quotes to denote
@@ -699,7 +699,7 @@ Guards
699699.. index :: ! guard
700700
701701.. productionlist :: python-grammar
702- guard: "if" `named_expression `
702+ guard: "if" `! named_expression `
703703
704704A ``guard `` (which is part of the ``case ``) must succeed for code inside
705705the ``case `` block to execute. It takes the form: :keyword: `if ` followed by an
@@ -844,7 +844,7 @@ A literal pattern corresponds to most
844844 literal_pattern: `signed_number `
845845 : | `signed_number ` "+" NUMBER
846846 : | `signed_number ` "-" NUMBER
847- : | `strings `
847+ : | `! strings `
848848 : | "None"
849849 : | "True"
850850 : | "False"
@@ -1013,8 +1013,8 @@ subject value:
10131013 items, as for a fixed-length sequence.
10141014
10151015 .. note :: The length of the subject sequence is obtained via
1016- :func: `len ` (i.e. via the :meth: `__len__ ` protocol). This length may be
1017- cached by the interpreter in a similar manner as
1016+ :func: `len ` (i.e. via the :meth: `~object. __len__ ` protocol).
1017+ This length may be cached by the interpreter in a similar manner as
10181018 :ref: `value patterns <value-patterns >`.
10191019
10201020
0 commit comments