#NEWLINE# def send( event , **arguments ) : #NEWLINE# #INDENT# 'Send an event to all assigned event listeners.\n\n    `event` is the name of  the event to send, all other named arguments\n    are passed along to the handlers.\n\n    Return a list of non-None values returned from the handlers.\n    ' #NEWLINE# log . debug ( 'Sending event: {0}' , event ) #NEWLINE# results = [ ] #NEWLINE# for handler in event_handlers ( ) [ event ] : #NEWLINE# #INDENT# result = handler ( ** arguments ) #NEWLINE# if ( result is not None ) : #NEWLINE# #INDENT# results . append ( result ) #NEWLINE# #UNINDENT# #UNINDENT# return results