[Python-checkins] [2.7] bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) (#7716)

Terry Jan Reedy webhook-mailer at python.org
Fri Jun 15 15:23:40 EDT 2018


https://github.com/python/cpython/commit/184e8ed1eeda3ba869755ff37374dd86f332f30d
commit: 184e8ed1eeda3ba869755ff37374dd86f332f30d
branch: 2.7
author: Andrés Delfino <adelfino at gmail.com>
committer: Terry Jan Reedy <tjreedy at udel.edu>
date: 2018-06-15T15:23:37-04:00
summary:

[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 4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c)

Co-authored-by: Andrés Delfino <adelfino at gmail.com>

files:
M Doc/reference/expressions.rst

diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 7fbfae747f6f..6afc8673420b 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -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



More information about the Python-checkins mailing list