On Sun, Mar 15, 2015 at 9:15 AM, Marko Rauhamaa <[email protected]> wrote: > Oscar Benjamin <[email protected]>: > >> A generator is a special type of iterator that results from generator >> functions and generator expressions. > > Is it necessary/useful for a Python application programmer to be > conscious of the different types of iterator? What mistaken usage could > arise if the application just treated all iterators as, well, iterators?
If you treat them all as iterators, then you're safe, because that's the lowest common denominator. But there are a number of other iterators that have more features, including files, generators, etc. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
