#NEWLINE# def binary_op( name , with_mpf = '' , with_int = '' , with_mpc = '' ) : #NEWLINE# #INDENT# code = mpf_binary_op #NEWLINE# code = code . replace ( '%WITH_INT%' , with_int ) #NEWLINE# code = code . replace ( '%WITH_MPC%' , with_mpc ) #NEWLINE# code = code . replace ( '%WITH_MPF%' , with_mpf ) #NEWLINE# code = code . replace ( '%NAME%' , name ) #NEWLINE# np = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# exec_ ( code , globals ( ) , np ) #NEWLINE# return np [ name ]