def __init__(self, function):
    self.function = function
    self.__doc__ = getattr(function, '__doc__')
def __init__(self, function):
    self.function = function
    self.__doc__ = getattr(function, '__doc__')