def fixedpropety(f):
    cache_name = "_" + f.__name__

    def prop(self):
        try:
            return getattr(self, cache_name)
        except __HOLE__:
            setattr(self, cache_name, f(self))
            return getattr(self, cache_name)
    return property(prop, doc=f.__doc__)
dataset/ETHPy150Open hakril/PythonForWindows/windows/utils/pythonutils.py/fixedpropety