Skip to content

Commit 4fddd4e

Browse files
andresdelfinoterryjreedy
authored andcommitted
bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)
'expresson list' refers to the grammar term 'expression_list' in the subscription production.
1 parent 9b7c74c commit 4fddd4e

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
@@ -772,7 +772,7 @@ whose value is one of the keys of the mapping, and the subscription selects the
772772
value in the mapping that corresponds to that key. (The expression list is a
773773
tuple except if it has exactly one item.)
774774

775-
If the primary is a sequence, the expression (list) must evaluate to an integer
775+
If the primary is a sequence, the expression list must evaluate to an integer
776776
or a slice (as discussed in the following section).
777777

778778
The formal syntax makes no special provision for negative indices in

0 commit comments

Comments
 (0)