RE: Lazy Attribute

Discussion in 'Python' started by Andriy Kornatskyy, Nov 16, 2012.

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

    Thanks.

    Andriy


    ----------------------------------------
    > From:
    > Subject: Re: Lazy Attribute
    > Date: Fri, 16 Nov 2012 09:04:39 +0000
    > To:
    >
    > 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
    Andriy Kornatskyy, Nov 16, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ken Pu
    Replies:
    3
    Views:
    671
    Steven D'Aprano
    Jan 16, 2009
  2. Boris Borcic
    Replies:
    0
    Views:
    548
    Boris Borcic
    Jan 16, 2009
  3. Boris Borcic
    Replies:
    0
    Views:
    546
    Boris Borcic
    Jan 16, 2009
  4. Ian Kelly

    Re: Lazy Attribute

    Ian Kelly, Nov 15, 2012, in forum: Python
    Replies:
    0
    Views:
    175
    Ian Kelly
    Nov 15, 2012
  5. Andriy Kornatskyy

    RE: Lazy Attribute

    Andriy Kornatskyy, Nov 16, 2012, in forum: Python
    Replies:
    3
    Views:
    149
    Rouslan Korneychuk
    Nov 16, 2012
Loading...

Share This Page