Iterators and Generators for Memory-Efficient Processing (machinelearningmastery.com)

Laziness is not a religion.