Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4bf0fc3

Browse files
andresdelfinomiss-islington
authored andcommittedJun 15, 2018
bpo-33852: Remove misplaced parentheses around 'list'. (pythonGH-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 <adelfino@gmail.com>
1 parent ca4cb84 commit 4bf0fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Doc/reference/expressions.rst

+1-1
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)
Please sign in to comment.