@@ -158,7 +158,7 @@ loops that truncate the stream.
158158 Loops over the input iterable and accumulates data into tuples up to
159159 size *n *. The input is consumed lazily, just enough to fill a batch.
160160 The result is yielded as soon as the batch is full or when the input
161- iterable is exhausted:
161+ iterable is :term: ` exhausted ` :
162162
163163 .. doctest ::
164164
@@ -188,7 +188,7 @@ loops that truncate the stream.
188188.. function :: chain(*iterables)
189189
190190 Make an iterator that returns elements from the first iterable until
191- it is exhausted, then proceeds to the next iterable, until all of the
191+ it is :term: ` exhausted ` , then proceeds to the next iterable, until all of the
192192 iterables are exhausted. This combines multiple data sources into a
193193 single iterator. Roughly equivalent to::
194194
@@ -305,7 +305,7 @@ loops that truncate the stream.
305305
306306 Make an iterator that returns elements from *data * where the
307307 corresponding element in *selectors * is true. Stops when either the
308- *data * or *selectors * iterables have been exhausted. Roughly
308+ *data * or *selectors * iterables have been :term: ` exhausted ` . Roughly
309309 equivalent to::
310310
311311 def compress(data, selectors):
@@ -341,7 +341,7 @@ loops that truncate the stream.
341341.. function :: cycle(iterable)
342342
343343 Make an iterator returning elements from the *iterable * and saving a
344- copy of each. When the iterable is exhausted, return elements from
344+ copy of each. When the iterable is :term: ` exhausted ` , return elements from
345345 the saved copy. Repeats indefinitely. Roughly equivalent to::
346346
347347 def cycle(iterable):
@@ -472,7 +472,7 @@ loops that truncate the stream.
472472 elements from the iterable are skipped until *start * is reached.
473473
474474 If *stop * is ``None ``, iteration continues until the input is
475- exhausted, if at all. Otherwise, it stops at the specified position.
475+ :term: ` exhausted ` , if at all. Otherwise, it stops at the specified position.
476476
477477 If *step * is ``None ``, the step defaults to one. Elements are returned
478478 consecutively unless *step * is set higher than one which results in
@@ -677,9 +677,9 @@ loops that truncate the stream.
677677 Note, the element that first fails the predicate condition is
678678 consumed from the input iterator and there is no way to access it.
679679 This could be an issue if an application wants to further consume the
680- input iterator after *takewhile * has been run to exhaustion. To work
681- around this problem, consider using `more-itertools before_and_after()
682- <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.before_and_after> `_
680+ input iterator after *takewhile * has been run to :term: ` exhaustion <exhausted> `.
681+ To work around this problem, consider using `more-itertools before_and_after()
682+ <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.before_and_after> `__
683683 instead.
684684
685685
@@ -766,7 +766,7 @@ loops that truncate the stream.
766766 If the iterables are of uneven length, missing values are filled-in
767767 with *fillvalue *. If not specified, *fillvalue * defaults to ``None ``.
768768
769- Iteration continues until the longest iterable is exhausted.
769+ Iteration continues until the longest iterable is :term: ` exhausted ` .
770770
771771 Roughly equivalent to::
772772
0 commit comments