PYTHONITERATIONITERABLE+1 more
Python Iteration Protocol: Iterables vs Iterators
Python separates the `Iterable` and `Iterator` protocols to support multiple independent cursors and lazy streaming computation. It achieves O(1) memory usage at the cost of random access and replayability.



