#NEWLINE# def find_multiple_stats( stats , name , _found = None , _on_found = None ) : #NEWLINE# #INDENT# if ( _found is None ) : #NEWLINE# #INDENT# _found = [ ] #NEWLINE# #UNINDENT# for child_stats in stats : #NEWLINE# #INDENT# if ( child_stats . name == name ) : #NEWLINE# #INDENT# _found . append ( child_stats ) #NEWLINE# if callable ( _on_found ) : #NEWLINE# #INDENT# _on_found ( name ) #NEWLINE# #UNINDENT# #UNINDENT# find_multiple_stats ( child_stats , name , _found ) #NEWLINE# #UNINDENT# return _found