Vladimir

59%
Flag icon
iterator General term for any object that implements a __next__ method. Iterators are designed to produce data that is consumed by the client code, i.e., the code that drives the iterator via a for loop or other iterative feature, or by explicitly calling next(it) on the iterator—although this explicit usage is much less common. In practice, most iterators we use in Python are generators.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview