OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, func, name=None, doc=None) |
def | __get__ (self, obj, type=None) |
Data Fields | |
func | |
lock | |
A decorator that converts a function into a lazy property. The function wrapped is called the first time to retrieve the result and then that calculated result is used the next time you access the value. Works like the one in Werkzeug but has a lock for thread safety.
def __init__ | ( | self, | |
func, | |||
name = None , |
|||
doc = None |
|||
) |
def __get__ | ( | self, | |
obj, | |||
type = None |
|||
) |
func |
lock |