Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33428
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <stefan@epy.co.at> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.045 |
| X-Spam-Evidence | '*H*': 0.91; '*S*': 0.00; 'cached': 0.09; 'to:name :python-list': 0.15; 'value:': 0.16; 'wrote:': 0.17; 'instance': 0.17; 'stefan': 0.17; 'handles': 0.18; 'pass': 0.25; 'header:In- Reply-To:1': 0.25; "d'aprano": 0.29; 'received:192.168.1.3': 0.29; 'steven': 0.29; "i'm": 0.29; 'towards': 0.32; 'to:addr:python- list': 0.33; 'url:org': 0.36; 'charset:us-ascii': 0.36; 'subject:: ': 0.38; 'url:en': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Message- Id:1': 0.62; 'received:at': 0.71 |
| Content-Type | text/plain; charset=us-ascii |
| Mime-Version | 1.0 (Apple Message framework v1085) |
| Subject | Re: Lazy Attribute |
| From | "Stefan H. Holek" <stefan@epy.co.at> |
| In-Reply-To | <50a6156e$0$29978$c3e8da3$5496439d@news.astraweb.com> |
| Date | Fri, 16 Nov 2012 11:45:32 +0100 |
| Content-Transfer-Encoding | quoted-printable |
| References | <DUB117-W881D7D74D529D159D8B33F91520@phx.gbl> <mailman.3729.1353019611.27098.python-list@python.org> <50a6156e$0$29978$c3e8da3$5496439d@news.astraweb.com> |
| To | python-list <python-list@python.org> |
| X-Mailer | Apple Mail (2.1085) |
| 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.3745.1353062733.27098.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1353062733 news.xs4all.nl 6949 [2001:888:2000:d::a6]:58588 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:33428 |
Show key headers only | View raw
On 16.11.2012, at 11:29, Steven D'Aprano wrote: > I'm very vaguely leaning towards this as the least-worst solution to > invalidating the cached value: > > refresh(obj, 'attr') # pass the instance and the name This it exactly how lazy handles invalidation. http://lazy.readthedocs.org/en/latest/ Stefan -- Stefan H. Holek stefan@epy.co.at
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Lazy Attribute Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-15 15:46 -0700
Re: Lazy Attribute Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-16 10:29 +0000
Re: Lazy Attribute "Stefan H. Holek" <stefan@epy.co.at> - 2012-11-16 11:45 +0100
RE: Lazy Attribute Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2012-11-16 13:46 +0300
Re: Lazy Attribute "Stefan H. Holek" <stefan@epy.co.at> - 2012-11-16 13:46 +0100
csiph-web