def execute(self):
        ''' ExecComp execute function '''
        global _expr_dict
        if self.trace:
            for var in self.list_inputs(connected=True):
                print "%s.%s = %s" % (self.name,var,getattr(self,var))
            for var in self.list_outputs(connected=True):
                print "%s.%s = %s" % (self.name,var,getattr(self,var))
        for expr in self.codes:
            exec(expr, _expr_dict, self.__dict__ )
            
        if self.sleep:
            time.sleep(self.sleep)

        if self.trace:
            for var in self.list_inputs(connected=True):
                print (self.name,var,getattr(self,var)) % "%s.%s = %s"
            for var in self.list_outputs(connected=True):
                print "%s.%s = %s" % (self.name,var,getattr(self,var))
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.test/src/openmdao/test/execcomp.py/ExecComp.execute/swapped operands of `%`