Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105366 > unrolled thread
| Started by | "Joseph L. Casale" <jcasale@activenetwerx.com> |
|---|---|
| First post | 2016-03-21 15:38 +0000 |
| Last post | 2016-03-21 15:38 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Static caching property "Joseph L. Casale" <jcasale@activenetwerx.com> - 2016-03-21 15:38 +0000
| From | "Joseph L. Casale" <jcasale@activenetwerx.com> |
|---|---|
| Date | 2016-03-21 15:38 +0000 |
| Subject | Static caching property |
| Message-ID | <mailman.444.1458575228.12893.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web