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