Skip to content

Commit 3495d74

Browse files
committed
Start on glossary entries
1 parent ec68594 commit 3495d74

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Doc/glossary.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,10 @@ Glossary
799799
And also please note that the free-threading CPython does not guarantee
800800
the thread-safety of iterator operations.
801801

802+
key
803+
804+
A value that "names" an entry in a :term:`mapping`,
805+
See also :term:`subscript`.
802806

803807
key function
804808
A key function or collation function is a callable that returns a value
@@ -1340,6 +1344,13 @@ Glossary
13401344

13411345
See also :term:`borrowed reference`.
13421346

1347+
subscript
1348+
1349+
The expression in square brackets of a :ref:`subscription <subscriptions>`
1350+
expression, usually used to select an element of a container.
1351+
Also called a :term:`key` (when subscipting a :term:`mapping`) or
1352+
an :term:`index` (when subscipting a :term:`sequence`).
1353+
13431354
t-string
13441355
t-strings
13451356
String literals prefixed with ``t`` or ``T`` are commonly called

0 commit comments

Comments
 (0)