Sha256: c785d3aed969fe60d358efc43aafc82c83afd90a25f112cc9d19b933c97739f5

Contents?: true

Size: 291 Bytes

Versions: 9

Compression:

Stored size: 291 Bytes

Contents

def identity(obj):
    return obj


class cached_property(object):
    def __init__(self, func):
        self.func = func

    def __get__(self, obj, cls):
        if obj is None:
            return self
        value = obj.__dict__[self.func.__name__] = self.func(obj)
        return value

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
libv8-7.8.279.23.0beta1 vendor/depot_tools/third_party/logilab/lazy_object_proxy/utils.py
libv8-7.4.288.28.0beta1 vendor/depot_tools/third_party/logilab/lazy_object_proxy/utils.py
libv8-7.3.492.27.3beta1 vendor/depot_tools/third_party/logilab/lazy_object_proxy/utils.py
libv8-7.3.492.27.1 vendor/depot_tools/third_party/logilab/lazy_object_proxy/utils.py
libv8-7.3.492.27.0 vendor/depot_tools/third_party/logilab/lazy_object_proxy/utils.py
libv8-7.3.492.27.0beta1 vendor/depot_tools/third_party/logilab/lazy_object_proxy/utils.py
pylintr-0.1.3 bin/pylint_2_7/lib/python2.7/site-packages/lazy_object_proxy/utils.py
pylintr-0.1.2 bin/pylint_2_7/lib/python2.7/site-packages/lazy_object_proxy/utils.py
pylintr-0.1.1 bin/pylint_2_7/lib/python2.7/site-packages/lazy_object_proxy/utils.py