@@ -161,7 +161,7 @@ loops that truncate the stream.
161161 Loops over the input iterable and accumulates data into tuples up to
162162 size *n *. The input is consumed lazily, just enough to fill a batch.
163163 The result is yielded as soon as the batch is full or when the input
164- iterable is exhausted:
164+ iterable is :term: ` exhausted ` :
165165
166166 .. doctest ::
167167
@@ -191,7 +191,7 @@ loops that truncate the stream.
191191.. function :: chain(*iterables)
192192
193193 Make an iterator that returns elements from the first iterable until
194- it is exhausted, then proceeds to the next iterable, until all of the
194+ it is :term: ` exhausted ` , then proceeds to the next iterable, until all of the
195195 iterables are exhausted. This combines multiple data sources into a
196196 single iterator. Roughly equivalent to::
197197
@@ -300,7 +300,7 @@ loops that truncate the stream.
300300
301301 Make an iterator that returns elements from *data * where the
302302 corresponding element in *selectors * is true. Stops when either the
303- *data * or *selectors * iterables have been exhausted. Roughly
303+ *data * or *selectors * iterables have been :term: ` exhausted ` . Roughly
304304 equivalent to::
305305
306306 def compress(data, selectors):
@@ -336,7 +336,7 @@ loops that truncate the stream.
336336.. function :: cycle(iterable)
337337
338338 Make an iterator returning elements from the *iterable * and saving a
339- copy of each. When the iterable is exhausted, return elements from
339+ copy of each. When the iterable is :term: ` exhausted ` , return elements from
340340 the saved copy. Repeats indefinitely. Roughly equivalent to::
341341
342342 def cycle(iterable):
@@ -467,7 +467,7 @@ loops that truncate the stream.
467467 elements from the iterable are skipped until *start * is reached.
468468
469469 If *stop * is ``None ``, iteration continues until the input is
470- exhausted, if at all. Otherwise, it stops at the specified position.
470+ :term: ` exhausted ` , if at all. Otherwise, it stops at the specified position.
471471
472472 If *step * is ``None ``, the step defaults to one. Elements are returned
473473 consecutively unless *step * is set higher than one which results in
@@ -672,9 +672,9 @@ loops that truncate the stream.
672672 Note, the element that first fails the predicate condition is
673673 consumed from the input iterator and there is no way to access it.
674674 This could be an issue if an application wants to further consume the
675- input iterator after *takewhile * has been run to exhaustion. To work
676- around this problem, consider using `more-itertools before_and_after()
677- <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.before_and_after> `_
675+ input iterator after *takewhile * has been run to :term: ` exhaustion <exhausted> `.
676+ To work around this problem, consider using `more-itertools before_and_after()
677+ <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.before_and_after> `__
678678 instead.
679679
680680
@@ -761,7 +761,7 @@ loops that truncate the stream.
761761 If the iterables are of uneven length, missing values are filled-in
762762 with *fillvalue *. If not specified, *fillvalue * defaults to ``None ``.
763763
764- Iteration continues until the longest iterable is exhausted.
764+ Iteration continues until the longest iterable is :term: ` exhausted ` .
765765
766766 Roughly equivalent to::
767767
0 commit comments