Skip to content

Commit 184e8ed

Browse files
andresdelfinoterryjreedy
authored andcommitted
[2.7] bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) (#7716)
'expresson list' refers to the grammar term 'expression_list' in the subscription production.. (cherry picked from commit 4fddd4e) Co-authored-by: Andrés Delfino <[email protected]>
1 parent 1889c4c commit 184e8ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ whose value is one of the keys of the mapping, and the subscription selects the
581581
value in the mapping that corresponds to that key. (The expression list is a
582582
tuple except if it has exactly one item.)
583583

584-
If the primary is a sequence, the expression (list) must evaluate to a plain
584+
If the primary is a sequence, the expression list must evaluate to a plain
585585
integer. If this value is negative, the length of the sequence is added to it
586586
(so that, e.g., ``x[-1]`` selects the last item of ``x``.) The resulting value
587587
must be a nonnegative integer less than the number of items in the sequence, and

0 commit comments

Comments
 (0)