mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
added __name__ and __doc__ to Functor
This commit is contained in:
parent
4e36337007
commit
8085d3eca9
@ -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"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user