Lazy Attribute

Steven D'Aprano steve+comp.lang.python at
Fri Nov 16 10:04:39 CET 2012

On Fri, 16 Nov 2012 10:49:07 +0300, Andriy Kornatskyy wrote:

> Ian,
> Thank you for the comments.
>> The name "attribute" is not very descriptive. Why not "lazy_attribute"
>> instead?
> It just shorter and still descriptive.

It is not descriptive. EVERYTHING accessed used dot notation obj.thing is 
an attribute. What makes your "attribute" different from ordinary 
attributes, properties, dynamic attributes calculated with __getattr__, 
methods, etc?


More information about the Python-list mailing list