Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33424

RE: Lazy Attribute

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <andriy.kornatskyy@live.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.010
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'attribute': 0.05; 'attributes': 0.07; 'attribute.': 0.09; 'methods,': 0.09; 'notation': 0.09; 'applies': 0.15; 'attributes,': 0.16; 'attributes.': 0.16; 'etc?': 0.16; 'properties,': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; 'wrote:': 0.17; '+0000': 0.20; 'to:name:python- list@python.org': 0.20; 'skip:- 40': 0.21; 'thanks.': 0.21; 'to:2**1': 0.23; 'header:In-Reply-To:1': 0.25; 'steven': 0.29; 'date:': 0.29; 'url:mailman': 0.29; 'fri,': 0.30; 'url:python': 0.32; 'url:listinfo': 0.32; 'from:addr:live.com': 0.33; 'shorter': 0.33; 'to:addr:python-list': 0.33; 'nov': 0.35; 'subject:': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.36; 'thank': 0.36; 'why': 0.37; 'subject:: ': 0.38; 'from:': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'url:mail': 0.40; 'your': 0.60; 'email name:python-list': 0.62; 'different': 0.63; '10:49:07': 0.84; 'ian,': 0.84; 'charset:windows-1251': 0.97
X-Originating-IP [194.44.213.194]
From Andriy Kornatskyy <andriy.kornatskyy@live.com>
To <steve+comp.lang.python@pearwood.info>, "python-list@python.org" <python-list@python.org>
Subject RE: Lazy Attribute
Date Fri, 16 Nov 2012 13:27:06 +0300
Importance Normal
In-Reply-To <50a601a7$0$29978$c3e8da3$5496439d@news.astraweb.com>
References <50a601a7$0$29978$c3e8da3$5496439d@news.astraweb.com>
Content-Type text/plain; charset="windows-1251"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-OriginalArrivalTime 16 Nov 2012 10:27:07.0287 (UTC) FILETIME=[EDC7DA70:01CDC3E4]
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3742.1353061695.27098.python-list@python.org> (permalink)
Lines 38
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1353061695 news.xs4all.nl 6898 [2001:888:2000:d::a6]:43902
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:33424

Show key headers only | View raw


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
 		 	   		  

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

RE: Lazy Attribute Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2012-11-16 10:49 +0300
  Re: Lazy Attribute Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-16 09:04 +0000
    RE: Lazy Attribute Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2012-11-16 13:27 +0300
  Re: Lazy Attribute Rouslan Korneychuk <rouslank@msn.com> - 2012-11-16 04:32 -0500
    Re: Lazy Attribute Rouslan Korneychuk <rouslank@msn.com> - 2012-11-16 05:12 -0500
      RE: Lazy Attribute Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2012-11-16 13:31 +0300

csiph-web