def __call__(self, *args, **kwargs):
        """
        Proxied to the underlying function or method. Raises
        :class:`DeadMethodCalled` if the referenced function is dead.

        :rtype:  object :returns: Whatever the referenced function returned.
        """
        method = self.get_function()
        if method is None:
            raise DeadMethodCalled('method called on dead object ' + self.name)
        method(*args, **kwargs)
def __call__ ( self , * args , ** kwargs ) : method = self . get_function ( ) if method is None : raise DeadMethodCalled ( 'method called on dead object ' + self . name ) method ( * args , ** kwargs )
Proxied to the underlying function or method. Raises
        :class:`DeadMethodCalled` if the referenced function is dead.

        :rtype:  object :returns: Whatever the referenced function returned.