Skip to content

Commit bbac1fc

Browse files
Apply suggestions from code review
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent 0d7be86 commit bbac1fc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Doc/reference/expressions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ a :class:`dict`::
977977
In the subscription syntax, the object being subscribed -- a
978978
:ref:`primary <primaries>` -- is followed by a :dfn:`subscript` in
979979
square brackets.
980-
In the simplest case, the subscript is single expression.
980+
In the simplest case, the subscript is a single expression.
981981

982982
Depending on the type of the object being subscribed, the subscript is
983983
sometimes called a :term:`key` (for mappings), :term:`index` (for sequences),
@@ -1149,8 +1149,8 @@ Formal subscription grammar
11491149
proper_slice: [`expression`] ":" [`expression`] [ ":" [`expression`] ]
11501150
tuple_subscript: ','.(`single_subscript` | `starred_expression`)+ [',']
11511151

1152-
Recall that the ``|`` operator :ref:`denotes *ordered choice* <notation>`.
1153-
Specifically, in :token:`!subscript`, if both alternatives of would match, the
1152+
Recall that the ``|`` operator :ref:`denotes ordered choice <notation>`.
1153+
Specifically, in :token:`!subscript`, if both alternatives would match, the
11541154
first (:token:`!single_subscript`) has priority.
11551155

11561156
.. index::

Doc/reference/simple_stmts.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ Assignment of an object to a single target is recursively defined as follows.
225225
The assigned object should be :term:`iterable`.
226226
The slicing's lower and upper bounds should be integers; if they are ``None``
227227
(or not present), the defaults are zero and the sequence's length.
228-
The bounds should evaluate to integers.
229228
If either bound is negative, the sequence's length is added to it. The
230229
resulting bounds are clipped to lie between zero and the sequence's length,
231230
inclusive. Finally, the sequence object is asked to replace the slice with

0 commit comments

Comments
 (0)