def __new__(klass,function,*argexprs): if not argexprs: return ExprBase.__new__(klass,function) for arg in argexprs: if not isinstance(arg,Const): return ExprBase.__new__(klass,function,*argexprs) return Const(function(*[arg.value for arg in argexprs]))
def __new__(klass, function, *argexprs): if not argexprs: return ExprBase.__new__(klass, function) for arg in argexprs: if not isinstance(arg, Const): return ExprBase.__new__(klass) return Const(function(*[arg.value for arg in argexprs]))
def __new__(klass,*argexprs): for arg in argexprs: if not isinstance(arg,Const): return ExprBase.__new__(klass,*argexprs) return Const(klass.immediate([arg.value for arg in argexprs]))
def __new__(klass, *argexprs): for arg in argexprs: if not isinstance(arg, Const): return ExprBase.__new__(klass, *argexprs) return Const(klass.immediate([arg.value for arg in argexprs]))