@@ -348,10 +348,10 @@ are always available. They are listed here in alphabetical order.
348348.. function :: enumerate(iterable, start=0)
349349
350350 Return an enumerate object. *iterable * must be a sequence, an
351- :term: `iterator `, or some other object which supports iteration. The
352- :meth: `__next__ ` method of the iterator returned by :func: ` enumerate ` returns a
353- tuple containing a count (from *start * which defaults to 0) and the
354- values obtained from iterating over *iterable *.
351+ :term: `iterator `, or some other object which supports iteration.
352+ The :meth: `~iterator. __next__ ` method of the iterator returned by
353+ :func: ` enumerate ` returns a tuple containing a count (from *start * which
354+ defaults to 0) and the values obtained from iterating over *iterable *.
355355
356356 >>> seasons = [' Spring' , ' Summer' , ' Fall' , ' Winter' ]
357357 >>> list (enumerate (seasons))
@@ -683,9 +683,10 @@ are always available. They are listed here in alphabetical order.
683683 starting at ``0 ``). If it does not support either of those protocols,
684684 :exc: `TypeError ` is raised. If the second argument, *sentinel *, is given,
685685 then *object * must be a callable object. The iterator created in this case
686- will call *object * with no arguments for each call to its :meth: `__next__ `
687- method; if the value returned is equal to *sentinel *, :exc: `StopIteration `
688- will be raised, otherwise the value will be returned.
686+ will call *object * with no arguments for each call to its
687+ :meth: `~iterator.__next__ ` method; if the value returned is equal to
688+ *sentinel *, :exc: `StopIteration ` will be raised, otherwise the value will
689+ be returned.
689690
690691 One useful application of the second form of :func: `iter ` is to read lines of
691692 a file until a certain line is reached. The following example reads a file
@@ -779,9 +780,9 @@ are always available. They are listed here in alphabetical order.
779780
780781.. function :: next(iterator[, default])
781782
782- Retrieve the next item from the *iterator * by calling its :meth: ` __next__ `
783- method. If *default * is given, it is returned if the iterator is exhausted,
784- otherwise :exc: `StopIteration ` is raised.
783+ Retrieve the next item from the *iterator * by calling its
784+ :meth: ` ~iterator.__next__ ` method. If *default * is given, it is returned
785+ if the iterator is exhausted, otherwise :exc: `StopIteration ` is raised.
785786
786787
787788.. function :: object()
0 commit comments