advice needed for lazy evaluation mechanism

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Thu Nov 12 03:27:08 EST 2009


On Thu, 12 Nov 2009 08:53:57 +0100, Dieter Maurer wrote:

> Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes on 10 Nov
> 2009 19:11:07 GMT:
>> ...
>> > So I am trying to restructure it using lazy evaluation.
>> 
>> Oh great, avoiding confusion with something even more confusing.
> 
> Lazy evaluation may be confusing if it is misused. But, it may be very
> clear and powerful if used appropriately.

I was referring to the specific example given, not the general concept of 
lazy evaluation.

I went on to give another example of simple, straightforward lazy 
evaluation: using properties for computed attributes.


-- 
Steven



More information about the Python-list mailing list