Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   RE: Lazy Attribute (http://www.velocityreviews.com/forums/t954550-re-lazy-attribute.html)

Andriy Kornatskyy 11-16-2012 10:27 AM

RE: Lazy Attribute
 

Same applies to properties... they are seen as an object attributes.

Thanks.

Andriy


----------------------------------------
> From: steve+comp.lang.python@pearwood.info
> Subject: Re: Lazy Attribute
> Date: Fri, 16 Nov 2012 09:04:39 +0000
> To: python-list@python.org
>
> 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
> --
> http://mail.python.org/mailman/listinfo/python-list



All times are GMT. The time now is 01:58 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57