Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33428
| Subject | Re: Lazy Attribute |
|---|---|
| From | "Stefan H. Holek" <stefan@epy.co.at> |
| Date | 2012-11-16 11:45 +0100 |
| References | <DUB117-W881D7D74D529D159D8B33F91520@phx.gbl> <mailman.3729.1353019611.27098.python-list@python.org> <50a6156e$0$29978$c3e8da3$5496439d@news.astraweb.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3745.1353062733.27098.python-list@python.org> (permalink) |
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