class with_default_getter(object):

    def __init__(self, func):
        self._attr_name = '_{0.__name__}'.format(func)
self._setter = func

def __get__(self, obj, type):
    return getattr(obj, self._attr_name)

def __set__(self, obj, value):
    return self._setter(obj, value)
Defining setter in a shorter way