Lazy Attribute
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Fri Nov 16 04:04:39 EST 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?
--
Steven
More information about the Python-list
mailing list