OpenQuizz
Une application de gestion des contenus pédagogiques
cached_property Class Reference
Inheritance diagram for cached_property:
Collaboration diagram for cached_property:

Public Member Functions

def __init__ (self, f)
 
def __get__ (self, obj, owner)
 

Detailed Description

A version of @property which caches the value.  On access, it calls the
underlying function and sets the value in `__dict__` so future accesses
will not re-call the property.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  f 
)

Member Function Documentation

◆ __get__()

def __get__ (   self,
  obj,
  owner 
)

The documentation for this class was generated from the following file: