def setup_variable_operator(opname): setattr(Variable, opname, lambda self, *args: getattr(VariableExpr(self), opname)(*args))
def __getattr__(self, name): return getattr(VariableExpr(self), name)
def setup_variable_operator(opname): setattr(Variable, opname, lambda self, *args: getattr(VariableExpr(self), opname)(*args))
def __getattr__(self, name): return getattr(VariableExpr(self), name)