Skip to content

Commit 0113391

Browse files
bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)
'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 ca4cb84 commit 0113391

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

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

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

0 commit comments

Comments
 (0)