OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __getattr__ (self, attr) |
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.
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.