Package gavo :: Package utils :: Module codetricks :: Class CachedResource
[frames] | no frames]

Class CachedResource

source code

object --+
         |
        CachedResource
Known Subclasses:

is like CachedGetter but with a built-in getter.

Here, you define your class and have a class method impl returning what you want.

Instance Methods

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
a new object with type S, a subtype of T
__new__(cls, arg) source code
Class Variables
  cache = None
hash(x)
Properties

Inherited from object: __class__

Method Details

__new__(cls, arg)
Class Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)