@@ -129,7 +129,7 @@ are always available. They are listed here in alphabetical order.
129129 anext(async_iterator, default, /)
130130
131131 When awaited, return the next item from the given :term: `asynchronous
132- iterator `, or *default * if given and the iterator is exhausted.
132+ iterator `, or *default * if given and the iterator is :term: ` exhausted ` .
133133
134134 This is the async variant of the :func: `next ` builtin, and behaves
135135 similarly.
@@ -1223,7 +1223,7 @@ are always available. They are listed here in alphabetical order.
12231223 process_block(block)
12241224
12251225 *stop_exception * is useful for callables
1226- which report exhaustion by raising an exception
1226+ which report :term: ` exhaustion <exhausted> ` by raising an exception
12271227 instead of returning a special value.
12281228 For example, draining a queue::
12291229
@@ -1315,7 +1315,7 @@ are always available. They are listed here in alphabetical order.
13151315 yielding the results. If additional *iterables * arguments are passed,
13161316 *function * must take that many arguments and is applied to the items from all
13171317 iterables in parallel. With multiple iterables, the iterator stops when the
1318- shortest iterable is exhausted. If *strict * is ``True `` and one of the
1318+ shortest iterable is :term: ` exhausted ` . If *strict * is ``True `` and one of the
13191319 iterables is exhausted before the others, a :exc: `ValueError ` is raised. For
13201320 cases where the function inputs are already arranged into argument tuples,
13211321 see :func: `itertools.starmap `.
@@ -1397,7 +1397,7 @@ are always available. They are listed here in alphabetical order.
13971397
13981398 Retrieve the next item from the :term: `iterator ` by calling its
13991399 :meth: `~iterator.__next__ ` method. If *default * is given, it is returned
1400- if the iterator is exhausted, otherwise :exc: `StopIteration ` is raised.
1400+ if the iterator is :term: ` exhausted ` , otherwise :exc: `StopIteration ` is raised.
14011401
14021402
14031403.. class :: object()
@@ -2312,7 +2312,7 @@ are always available. They are listed here in alphabetical order.
23122312 the code that prepared these iterables. Python offers three different
23132313 approaches to dealing with this issue:
23142314
2315- * By default, :func: `zip ` stops when the shortest iterable is exhausted.
2315+ * By default, :func: `zip ` stops when the shortest iterable is :term: ` exhausted ` .
23162316 It will ignore the remaining items in the longer iterables, cutting off
23172317 the result to the length of the shortest iterable::
23182318
@@ -2327,7 +2327,7 @@ are always available. They are listed here in alphabetical order.
23272327 [('a', 1), ('b', 2), ('c', 3)]
23282328
23292329 Unlike the default behavior, it raises a :exc: `ValueError ` if one iterable
2330- is exhausted before the others:
2330+ is :term: ` exhausted ` before the others:
23312331
23322332 >>> for item in zip (range (3 ), [' fee' , ' fi' , ' fo' , ' fum' ], strict = True ): # doctest: +SKIP
23332333 ... print (item)
0 commit comments