@@ -352,10 +352,10 @@ are always available. They are listed here in alphabetical order.
352352.. function :: enumerate(iterable, start=0)
353353
354354 Return an enumerate object. *iterable * must be a sequence, an
355- :term: `iterator `, or some other object which supports iteration. The
356- :meth: `__next__ ` method of the iterator returned by :func: ` enumerate ` returns a
357- tuple containing a count (from *start * which defaults to 0) and the
358- values obtained from iterating over *iterable *.
355+ :term: `iterator `, or some other object which supports iteration.
356+ The :meth: `~iterator. __next__ ` method of the iterator returned by
357+ :func: ` enumerate ` returns a tuple containing a count (from *start * which
358+ defaults to 0) and the values obtained from iterating over *iterable *.
359359
360360 >>> seasons = [' Spring' , ' Summer' , ' Fall' , ' Winter' ]
361361 >>> list (enumerate (seasons))
@@ -687,9 +687,10 @@ are always available. They are listed here in alphabetical order.
687687 starting at ``0 ``). If it does not support either of those protocols,
688688 :exc: `TypeError ` is raised. If the second argument, *sentinel *, is given,
689689 then *object * must be a callable object. The iterator created in this case
690- will call *object * with no arguments for each call to its :meth: `__next__ `
691- method; if the value returned is equal to *sentinel *, :exc: `StopIteration `
692- will be raised, otherwise the value will be returned.
690+ will call *object * with no arguments for each call to its
691+ :meth: `~iterator.__next__ ` method; if the value returned is equal to
692+ *sentinel *, :exc: `StopIteration ` will be raised, otherwise the value will
693+ be returned.
693694
694695 See also :ref: `typeiter `.
695696
@@ -785,9 +786,9 @@ are always available. They are listed here in alphabetical order.
785786
786787.. function :: next(iterator[, default])
787788
788- Retrieve the next item from the *iterator * by calling its :meth: ` __next__ `
789- method. If *default * is given, it is returned if the iterator is exhausted,
790- otherwise :exc: `StopIteration ` is raised.
789+ Retrieve the next item from the *iterator * by calling its
790+ :meth: ` ~iterator.__next__ ` method. If *default * is given, it is returned
791+ if the iterator is exhausted, otherwise :exc: `StopIteration ` is raised.
791792
792793
793794.. function :: object()
0 commit comments