itertools cycle() docs question

Terry Reedy tjreedy at udel.edu
Thu Aug 22 13:58:12 EDT 2019


On 8/22/2019 11:35 AM, Dennis Lee Bieber wrote:
> On Wed, 21 Aug 2019 12:52:44 -0700, Tobiah <toby at tobiah.org> declaimed the
> following:
> 
>>
>> I see.  What is an example of an iterable that is not reusable?

Essentially all iterators, which included all generators, which includes 
the return from all generator functions and all generator expressions 
and all iter(iterable) expressions.

-- 
Terry Jan Reedy




More information about the Python-list mailing list