Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105366 > unrolled thread

Static caching property

Started by"Joseph L. Casale" <jcasale@activenetwerx.com>
First post2016-03-21 15:38 +0000
Last post2016-03-21 15:38 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Static caching property "Joseph L. Casale" <jcasale@activenetwerx.com> - 2016-03-21 15:38 +0000

#105366 — Static caching property

From"Joseph L. Casale" <jcasale@activenetwerx.com>
Date2016-03-21 15:38 +0000
SubjectStatic 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web