On Fri, Aug 23, 2019 at 1:41 AM Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote: > > On Wed, 21 Aug 2019 12:52:44 -0700, Tobiah <t...@tobiah.org> declaimed the > following: > > > > >I see. What is an example of an iterable that is not reusable? > > > >>> x = range(5) > >>> x > range(0, 5) > >>> >
>>> x = range(0, 5) >>> list(x) [0, 1, 2, 3, 4] >>> list(x) [0, 1, 2, 3, 4] >>> list(x) [0, 1, 2, 3, 4] >>> list(x) [0, 1, 2, 3, 4] Perfectly reusable. There are plenty of others that aren't, but that one is. ChrisA -- https://mail.python.org/mailman/listinfo/python-list