added __name__ and __doc__ to Functor

This commit is contained in:
Darren Ranalli 2002-11-27 19:44:20 +00:00
parent 4e36337007
commit 8085d3eca9

View File

@ -488,6 +488,8 @@ class Functor:
self._function = function
self._args = args
self._kargs = kargs
self.__name__ = 'Functor: %s' % self._function.__name__
self.__doc__ = self._function.__doc__
def __call__(self, *args, **kargs):
"""call function"""