@@ -636,7 +636,7 @@ Glossary
636
636
iterables include all sequence types (such as :class: `list `, :class: `str `,
637
637
and :class: `tuple `) and some non-sequence types like :class: `dict `,
638
638
:term: `file objects <file object> `, and objects of any classes you define
639
- with an :meth: `__iter__ ` method or with a :meth: `__getitem__ ` method
639
+ with an :meth: `__iter__ ` method or with a :meth: `~object. __getitem__ ` method
640
640
that implements :term: `sequence ` semantics.
641
641
642
642
Iterables can be
@@ -1078,17 +1078,17 @@ Glossary
1078
1078
1079
1079
sequence
1080
1080
An :term: `iterable ` which supports efficient element access using integer
1081
- indices via the :meth: `__getitem__ ` special method and defines a
1081
+ indices via the :meth: `~object. __getitem__ ` special method and defines a
1082
1082
:meth: `__len__ ` method that returns the length of the sequence.
1083
1083
Some built-in sequence types are :class: `list `, :class: `str `,
1084
1084
:class: `tuple `, and :class: `bytes `. Note that :class: `dict ` also
1085
- supports :meth: `__getitem__ ` and :meth: `__len__ `, but is considered a
1085
+ supports :meth: `~object. __getitem__ ` and :meth: `__len__ `, but is considered a
1086
1086
mapping rather than a sequence because the lookups use arbitrary
1087
1087
:term: `immutable ` keys rather than integers.
1088
1088
1089
1089
The :class: `collections.abc.Sequence ` abstract base class
1090
1090
defines a much richer interface that goes beyond just
1091
- :meth: `__getitem__ ` and :meth: `__len__ `, adding :meth: `count `,
1091
+ :meth: `~object. __getitem__ ` and :meth: `__len__ `, adding :meth: `count `,
1092
1092
:meth: `index `, :meth: `__contains__ `, and
1093
1093
:meth: `__reversed__ `. Types that implement this expanded
1094
1094
interface can be registered explicitly using
0 commit comments