@@ -110,19 +110,19 @@ This module provides the following class:
110110 MyIterable.register(Foo)
111111
112112 The ABC ``MyIterable `` defines the standard iterable method,
113- :meth: `__iter__ `, as an abstract method. The implementation given here can
114- still be called from subclasses. The :meth: `get_iterator ` method is also
115- part of the ``MyIterable `` abstract base class, but it does not have to be
116- overridden in non-abstract derived classes.
113+ :meth: `~iterator. __iter__ `, as an abstract method. The implementation given
114+ here can still be called from subclasses. The :meth: `get_iterator ` method
115+ is also part of the ``MyIterable `` abstract base class, but it does not have
116+ to be overridden in non-abstract derived classes.
117117
118118 The :meth: `__subclasshook__ ` class method defined here says that any class
119- that has an :meth: `__iter__ ` method in its :attr: ` __dict__ ` (or in that of
120- one of its base classes, accessed via the :attr: ` __mro__ ` list) is
121- considered a ``MyIterable `` too.
119+ that has an :meth: `~iterator. __iter__ ` method in its
120+ :attr: ` ~object.__dict__ ` (or in that of one of its base classes, accessed
121+ via the :attr: ` ~class.__mro__ ` list) is considered a ``MyIterable `` too.
122122
123123 Finally, the last line makes ``Foo `` a virtual subclass of ``MyIterable ``,
124- even though it does not define an :meth: `__iter__ ` method (it uses the
125- old-style iterable protocol, defined in terms of :meth: `__len__ ` and
124+ even though it does not define an :meth: `~iterator. __iter__ ` method (it uses
125+ the old-style iterable protocol, defined in terms of :meth: `__len__ ` and
126126 :meth: `__getitem__ `). Note that this will not make ``get_iterator ``
127127 available as a method of ``Foo ``, so it is provided separately.
128128
0 commit comments