Computing a value only when it is actually needed, not up front.
Home » GlossaryLazy evaluationPythonComputing a value only when it is actually needed, not up front.Computing a value only when it is actually needed, not up front.Related termsGenerator — A function that uses yield to produce values one at a time, pausing between them.Iterator — An object with __next__ that returns the next value and raises StopIteration when it is done.← All terms