Skip to content

Commit 654bd21

Browse files
authored
Update glossary.rst (GH-32093)
1 parent d0906c9 commit 654bd21

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Doc/glossary.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ Glossary
628628
and :class:`tuple`) and some non-sequence types like :class:`dict`,
629629
:term:`file objects <file object>`, and objects of any classes you define
630630
with an :meth:`__iter__` method or with a :meth:`__getitem__` method
631-
that implements :term:`Sequence <sequence>` semantics.
631+
that implements :term:`sequence` semantics.
632632

633633
Iterables can be
634634
used in a :keyword:`for` loop and in many other places where a sequence is
@@ -680,9 +680,8 @@ Glossary
680680
:meth:`str.lower` method can serve as a key function for case insensitive
681681
sorts. Alternatively, a key function can be built from a
682682
:keyword:`lambda` expression such as ``lambda r: (r[0], r[2])``. Also,
683-
the :mod:`operator` module provides three key function constructors:
684-
:func:`~operator.attrgetter`, :func:`~operator.itemgetter`, and
685-
:func:`~operator.methodcaller`. See the :ref:`Sorting HOW TO
683+
:func:`operator.attrgetter`, :func:`operator.itemgetter`, and
684+
:func:`operator.methodcaller` are three key function constructors. See the :ref:`Sorting HOW TO
686685
<sortinghowto>` for examples of how to create and use key functions.
687686

688687
keyword argument
@@ -743,8 +742,8 @@ Glossary
743742

744743
mapping
745744
A container object that supports arbitrary key lookups and implements the
746-
methods specified in the :class:`~collections.abc.Mapping` or
747-
:class:`~collections.abc.MutableMapping`
745+
methods specified in the :class:`collections.abc.Mapping` or
746+
:class:`collections.abc.MutableMapping`
748747
:ref:`abstract base classes <collections-abstract-base-classes>`. Examples
749748
include :class:`dict`, :class:`collections.defaultdict`,
750749
:class:`collections.OrderedDict` and :class:`collections.Counter`.
@@ -1049,8 +1048,8 @@ Glossary
10491048
The number of references to an object. When the reference count of an
10501049
object drops to zero, it is deallocated. Reference counting is
10511050
generally not visible to Python code, but it is a key element of the
1052-
:term:`CPython` implementation. The :mod:`sys` module defines a
1053-
:func:`~sys.getrefcount` function that programmers can call to return the
1051+
:term:`CPython` implementation. Programmers can call the
1052+
:func:`sys.getrefcount` function to return the
10541053
reference count for a particular object.
10551054

10561055
regular package

0 commit comments

Comments
 (0)