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

Public Member Functions

def __getattr__ (self, attr)
 

Detailed Description

Base class providing an interface to lazily retrieve attribute values upon
first access. If slots are used, memory will only be reserved once the attribute
is actually accessed and retrieved the first time. All future accesses will
return the cached value as stored in the Instance's dict or slot.

Member Function Documentation

◆ __getattr__()

def __getattr__ (   self,
  attr 
)
Whenever an attribute is requested that we do not know, we allow it
to be created and set. Next time the same attribute is reqeusted, it is simply
returned from our dict/slots. 

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