kodi
Public Member Functions | List of all members
lib.version_check.distro.distro.cached_property Class Reference
Inheritance diagram for lib.version_check.distro.distro.cached_property:
Inheritance graph
[legend]
Collaboration diagram for lib.version_check.distro.distro.cached_property:
Collaboration graph
[legend]

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.

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