summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés Delfino <adelfino@gmail.com>2018-06-15 19:23:37 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2018-06-15 19:23:37 (GMT)
commit184e8ed1eeda3ba869755ff37374dd86f332f30d (patch)
treebb2b3e82d00696a4dcb9dff3b41ed8a021a2b657
parent1889c4cbd62e200fa4cde3d6219e0aadf9bd8149 (diff)
downloadcpython-184e8ed1eeda3ba869755ff37374dd86f332f30d.zip
cpython-184e8ed1eeda3ba869755ff37374dd86f332f30d.tar.gz
cpython-184e8ed1eeda3ba869755ff37374dd86f332f30d.tar.bz2
[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@gmail.com>
-rw-r--r--Doc/reference/expressions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 7fbfae7..6afc867 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