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, func)
 
def __get__ (self, obj, cls)
 

Data Fields

 func
 

Detailed Description

A property that is computed once per instance.

Upon being computed it replaces itself with an ordinary attribute. Deleting
the attribute resets the property.

Source: https://github.com/bottlepy/bottle/blob/1de24157e74a6971d136550afe1b63eec5b0df2b/bottle.py#L234-L246

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  func 
)

Member Function Documentation

◆ __get__()

def __get__ (   self,
  obj,
  cls 
)

Field Documentation

◆ func

func

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