@@ -628,7 +628,7 @@ Glossary
628
628
and :class: `tuple `) and some non-sequence types like :class: `dict `,
629
629
:term: `file objects <file object> `, and objects of any classes you define
630
630
with an :meth: `__iter__ ` method or with a :meth: `__getitem__ ` method
631
- that implements :term: `Sequence < sequence> ` semantics.
631
+ that implements :term: `sequence ` semantics.
632
632
633
633
Iterables can be
634
634
used in a :keyword: `for ` loop and in many other places where a sequence is
@@ -680,9 +680,8 @@ Glossary
680
680
:meth: `str.lower ` method can serve as a key function for case insensitive
681
681
sorts. Alternatively, a key function can be built from a
682
682
: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
686
685
<sortinghowto>` for examples of how to create and use key functions.
687
686
688
687
keyword argument
@@ -743,8 +742,8 @@ Glossary
743
742
744
743
mapping
745
744
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 `
748
747
:ref: `abstract base classes <collections-abstract-base-classes >`. Examples
749
748
include :class: `dict `, :class: `collections.defaultdict `,
750
749
:class: `collections.OrderedDict ` and :class: `collections.Counter `.
@@ -1049,8 +1048,8 @@ Glossary
1049
1048
The number of references to an object. When the reference count of an
1050
1049
object drops to zero, it is deallocated. Reference counting is
1051
1050
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
1054
1053
reference count for a particular object.
1055
1054
1056
1055
regular package
0 commit comments