summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrés Delfino <adelfino@gmail.com>2018-06-15 18:24:25 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2018-06-15 18:24:25 (GMT)
commit4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c (patch)
tree29865ba22e1711f9a10a76a27243b72cb161bfc1 /Doc
parent9b7c74ca32d1bec7128d550a9ab1b2ddc7046287 (diff)
downloadcpython-4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c.zip
cpython-4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c.tar.gz
cpython-4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c.tar.bz2
bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)
'expresson list' refers to the grammar term 'expression_list' in the subscription production.
Diffstat (limited to 'Doc')
-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 222b897..61bc912 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -772,7 +772,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 an integer
+If the primary is a sequence, the expression list must evaluate to an integer
or a slice (as discussed in the following section).
The formal syntax makes no special provision for negative indices in