bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) · python/cpython@4fddd4e

Original file line numberDiff line numberDiff line change

@@ -772,7 +772,7 @@ whose value is one of the keys of the mapping, and the subscription selects the

772772

value in the mapping that corresponds to that key. (The expression list is a

773773

tuple except if it has exactly one item.)

774774
775-

If the primary is a sequence, the expression (list) must evaluate to an integer

775+

If the primary is a sequence, the expression list must evaluate to an integer

776776

or a slice (as discussed in the following section).

777777
778778

The formal syntax makes no special provision for negative indices in