Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105366
| From | "Joseph L. Casale" <jcasale@activenetwerx.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Static caching property |
| Date | 2016-03-21 15:38 +0000 |
| Message-ID | <mailman.444.1458575228.12893.python-list@python.org> (permalink) |
With non static properties, you can use a decorator that overwrites the method on the instance with an attribute containing the methods return effectively caching it. What technique for a static property can be used to accomplish what the descriptor protocol does? I need to cache the results of a method on a class across all instances. Thanks, jlc
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Static caching property "Joseph L. Casale" <jcasale@activenetwerx.com> - 2016-03-21 15:38 +0000
csiph-web