codemach/machine.py
def execute(self, globals_=None, _locals=None):
        """
        Execute a code object
        
        The inputs and behavior of this function should match those of
        eval_ and exec_.

        .. _eval: https://docs.python.org/3/library/functions.html?highlight=eval#eval
        .. _exec: https://docs.python.org/3/library/functions.html?highlight=exec#exec

        .. note:: Need to figure out how the internals of this function must change for
           ``eval`` or ``exec``.

        :param code: a python code object
        :param globals_: optional globals dictionary
        :param _locals: optional locals dictionary
        """
        if globals_ is None:
            globals_ = globals()
        if _locals is None:
            self._locals = globals_
        else:
            self._locals = _locals
       
        self.globals_ = globals_

        if self.contains_op("YIELD_VALUE"):
            return self.iterate_instructions()
        else:
            return self.execute_instructions()
def execute(self, globals_=None, _locals=None):
        if globals_ is None:
            globals_ = globals()
        if _locals is None:
            self._locals = globals_
        else:
            self._locals = _locals
       
        self.globals_ = globals_

        if self.contains_op("YIELD_VALUE"):
            return self.iterate_instructions()
        else:
            return self.execute_instructions()
def execute ( self , globals_ = None , _locals = None ) : if globals_ is None : globals_ = globals ( ) if _locals is None : self . _locals = globals_ else : self . _locals = _locals self . globals_ = globals_ if self . contains_op ( "YIELD_VALUE" ) : return self . iterate_instructions ( ) else : return self . execute_instructions ( )
Execute a code object
        
        The inputs and behavior of this function should match those of
        eval_ and exec_.

        .. _eval: https://docs.python.org/3/library/functions.html?highlight=eval#eval
        .. _exec: https://docs.python.org/3/library/functions.html?highlight=exec#exec

        .. note:: Need to figure out how the internals of this function must change for
           ``eval`` or ``exec``.

        :param code: a python code object
        :param globals_: optional globals dictionary
        :param _locals: optional locals dictionary
Execute a code object The inputs and behavior of this function should match those of eval_ and exec_ .