1
# borrowed from jaraco.util.dictlib
2
class NonDataProperty(object):
3
"""Much like the property builtin, but only implements __get__,
4
making it a non-data property, and can be subsequently reset.
6
See http://users.rcn.com/python/download/Descriptor.htm for more
21
def __init__(self, fget):
22
assert fget is not None, "fget cannot be none"
23
assert callable(fget), "fget must be callable"
26
def __get__(self, obj, objtype=None):