Skip to content

Commit aa56eb8

Browse files
committed
Link the new terms, *key* and *index*
1 parent b489b76 commit aa56eb8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/reference/datamodel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3234,10 +3234,10 @@ through the object's keys; for sequences, it should iterate through the values.
32343234
via :meth:`!__getitem__`:
32353235

32363236
- **sequences**, where *subscript* (also called
3237-
*index*) should be an integer or a :class:`slice` object.
3237+
:term:`index`) should be an integer or a :class:`slice` object.
32383238
See the :ref:`sequence documentation <datamodel-sequences>` for the expected
32393239
behavior, including handling :class:`slice` objects and negative indices.
3240-
- **mappings**, where *subscript* is also called the *key*.
3240+
- **mappings**, where *subscript* is also called the :term:`key`.
32413241
See :ref:`mapping documentation <datamodel-mappings>` for the expected
32423242
behavior.
32433243

Doc/reference/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ square brackets.
962962
In the simplest case, the subscript is single expression.
963963

964964
Depending on the type of the object being subscribed, the subscript is
965-
sometimes called a *key* (for mappings), *index* (for sequences),
965+
sometimes called a :term:`key` (for mappings), :term:`index` (for sequences),
966966
or *type argument* (for :term:`generic types <generic type>`).
967967
Syntactically, these are all equivalent::
968968

0 commit comments

Comments
 (0)