O'Reilly logo
  • You Wang thinks this is interesting:

In a nutshell, an object is iterable if it is either a physically stored sequence in memory, or an object that generates one item at a time in the context of an iteration operation—a sort of “virtual” sequence


Cover of Learning Python, 5th Edition


by defining a generator, any object can become iterable