(self, expr, globals=None, locals=None)
Debug an expression executed via the eval() function.

        globals defaults to __main__.dict; locals defaults to globals.
Debug an expression executed via the eval() function.
Debug an expression executed via the eval () function .
def runeval(self, expr, globals=None, locals=None):
        """Debug an expression executed via the eval() function.

        globals defaults to __main__.dict; locals defaults to globals.
        """
        if globals is None:
            import __main__
            globals = __main__.__dict__
        if locals is None:
            locals = globals
        self.reset()
        sys.settrace(self.trace_dispatch)
        try:
            return eval(expr, globals, locals)
        except BdbQuit:
            pass
        finally:
            self.quitting = True
            sys.settrace(None)
def runeval ( self , expr , globals = None , locals = None ) : if globals is None : import __main__ globals = __main__ . __dict__ if locals is None : locals = globals self . reset ( ) sys . settrace ( self . trace_dispatch ) try : return eval ( expr , globals , locals ) except BdbQuit : pass finally : self . quitting = True sys . settrace ( None )