parameters: (self, __name, *args, **kwargs)
return_statement: return [hook(*args, **kwargs) for hook in self._hooks[__name][:]]
docstring: Trigger a hook and return a list of results.
docstring_summary: Trigger a hook and return a list of results.
docstring_tokens: Trigger a hook and return a list of results .
function: def trigger_hook(self, __name, *args, **kwargs):
          ''' Trigger a hook and return a list of results. '''
          return [hook(*args, **kwargs) for hook in self._hooks[__name][:]]
function_tokens: def trigger_hook ( self , __name , * args , * * kwargs ) : return [ hook ( * args , * * kwargs ) for hook in self . _hooks [ __name ] [ : ] ]