Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33424
| From | Andriy Kornatskyy <andriy.kornatskyy@live.com> |
|---|---|
| Subject | RE: Lazy Attribute |
| Date | 2012-11-16 13:27 +0300 |
| References | <50a601a7$0$29978$c3e8da3$5496439d@news.astraweb.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3742.1353061695.27098.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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