#NEWLINE# def get_squared_L2( self ) : #NEWLINE# #INDENT# ret = [ ] #NEWLINE# for b in self . _blocks : #NEWLINE# #INDENT# if ( ( 'get_squared_L2' in dir ( b ) ) and callable ( getattr ( b , 'get_squared_L2' ) ) ) : #NEWLINE# #INDENT# ret . append ( b . get_squared_L2 ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# return sum ( ret )