Python, Programming, Experiment, Data Structures.
aforementioned caveats in mind (no arbitrary retrieval, no len checking). Generators as Iterators To those coming from a Java/C++ background, it may be interesting to know that a Generator can be used with an interface similar to an Iterator. This is done by use of the next method in Python 2, and