#NEWLINE# def visit_BinOp( self , node ) : #NEWLINE# #INDENT# if ( isinstance ( node . left , ast . Num ) and isinstance ( node . right , ast . Num ) ) : #NEWLINE# #INDENT# a = node . left . n #NEWLINE# b = node . right . n #NEWLINE# self . stack ( ( a + b ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . generic_visit ( node )