Iterators, generators and array-like structures
Can someone confirm my general understanding of these data structures, from my limited use of Python and JavaScript: [updated description] iterators are classes that are more fundamental than array, etc. and define methods for accessing and moving through data; generator (objects) are a subclass of iterators instanciated by generator functions (using yield); other iterable data structures like arrays and lists inherit and adapt iterator methods. Instances of iterators and generators can be created without creating arrays, lists, etc. [1st attempt] iterators are known locations in memory, generators describe how the data is produced and assigning an iterator to an array or dictionary or similar container allows us to use the properties and methods of an array/dictionary/etc. on the data. Is that [updated description] accurate? Am I missing something fundamental?