def trigger(self, name, *a, **ka):
hooks = self.hooks[name]<EOL>if ka.pop('<STR_LIT>', False): hooks = hooks[::-<NUM_LIT:1>]<EOL>return [hook(*a, **ka) for hook in hooks]<EOL>
Trigger a hook and return a list of results.