@@ -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
@@ -1087,17 +1087,17 @@ Glossary
10871087
10881088 sequence
10891089 An :term: `iterable ` which supports efficient element access using integer
1090- indices via the :meth: `__getitem__ ` special method and defines a
1090+ indices via the :meth: `~object. __getitem__ ` special method and defines a
10911091 :meth: `__len__ ` method that returns the length of the sequence.
10921092 Some built-in sequence types are :class: `list `, :class: `str `,
10931093 :class: `tuple `, and :class: `bytes `. Note that :class: `dict ` also
1094- supports :meth: `__getitem__ ` and :meth: `__len__ `, but is considered a
1094+ supports :meth: `~object. __getitem__ ` and :meth: `__len__ `, but is considered a
10951095 mapping rather than a sequence because the lookups use arbitrary
10961096 :term: `immutable ` keys rather than integers.
10971097
10981098 The :class: `collections.abc.Sequence ` abstract base class
10991099 defines a much richer interface that goes beyond just
1100- :meth: `__getitem__ ` and :meth: `__len__ `, adding :meth: `count `,
1100+ :meth: `~object. __getitem__ ` and :meth: `__len__ `, adding :meth: `count `,
11011101 :meth: `index `, :meth: `__contains__ `, and
11021102 :meth: `__reversed__ `. Types that implement this expanded
11031103 interface can be registered explicitly using
0 commit comments