@@ -645,7 +645,7 @@ Glossary
645645 iterables include all sequence types (such as :class: `list `, :class: `str `,
646646 and :class: `tuple `) and some non-sequence types like :class: `dict `,
647647 :term: `file objects <file object> `, and objects of any classes you define
648- with an :meth: `__iter__ ` method or with a :meth: `__getitem__ ` method
648+ with an :meth: `__iter__ ` method or with a :meth: `~object. __getitem__ ` method
649649 that implements :term: `sequence ` semantics.
650650
651651 Iterables can be
@@ -1085,17 +1085,17 @@ Glossary
10851085
10861086 sequence
10871087 An :term: `iterable ` which supports efficient element access using integer
1088- indices via the :meth: `__getitem__ ` special method and defines a
1088+ indices via the :meth: `~object. __getitem__ ` special method and defines a
10891089 :meth: `__len__ ` method that returns the length of the sequence.
10901090 Some built-in sequence types are :class: `list `, :class: `str `,
10911091 :class: `tuple `, and :class: `bytes `. Note that :class: `dict ` also
1092- supports :meth: `__getitem__ ` and :meth: `__len__ `, but is considered a
1092+ supports :meth: `~object. __getitem__ ` and :meth: `__len__ `, but is considered a
10931093 mapping rather than a sequence because the lookups use arbitrary
10941094 :term: `immutable ` keys rather than integers.
10951095
10961096 The :class: `collections.abc.Sequence ` abstract base class
10971097 defines a much richer interface that goes beyond just
1098- :meth: `__getitem__ ` and :meth: `__len__ `, adding :meth: `count `,
1098+ :meth: `~object. __getitem__ ` and :meth: `__len__ `, adding :meth: `count `,
10991099 :meth: `index `, :meth: `__contains__ `, and
11001100 :meth: `__reversed__ `. Types that implement this expanded
11011101 interface can be registered explicitly using
0 commit comments