]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) (#7716)
authorAndrés Delfino <adelfino@gmail.com>
Fri, 15 Jun 2018 19:23:37 +0000 (16:23 -0300)
committerTerry Jan Reedy <tjreedy@udel.edu>
Fri, 15 Jun 2018 19:23:37 +0000 (15:23 -0400)
'expresson list' refers to the grammar term 'expression_list' in the subscription production..
(cherry picked from commit 4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Doc/reference/expressions.rst

index 7fbfae747f6f41fe0e037c77d342602fd4427b08..6afc8673420b288a40dec11740ea3b078079e4b6 100644 (file)
@@ -581,7 +581,7 @@ whose value is one of the keys of the mapping, and the subscription selects the
 value in the mapping that corresponds to that key.  (The expression list is a
 tuple except if it has exactly one item.)
 
-If the primary is a sequence, the expression (list) must evaluate to a plain
+If the primary is a sequence, the expression list must evaluate to a plain
 integer.  If this value is negative, the length of the sequence is added to it
 (so that, e.g., ``x[-1]`` selects the last item of ``x``.)  The resulting value
 must be a nonnegative integer less than the number of items in the sequence, and