diff -r 657269549914 -r bf9ee1e00bc5 DebugClients/Python3/DebugClientBase.py --- a/DebugClients/Python3/DebugClientBase.py Fri Mar 04 20:03:47 2011 +0100 +++ b/DebugClients/Python3/DebugClientBase.py Thu Mar 10 10:27:57 2011 +0100 @@ -691,7 +691,7 @@ if cmd == RequestEval: try: value = eval(arg, self.currentThread.getCurrentFrame().f_globals, - self.currentThread.getCurrentFrame().f_locals) + self.currentThread.getCurrentFrameLocals()) except: # Report the exception and the traceback try: @@ -722,7 +722,7 @@ if cmd == RequestExec: _globals = self.currentThread.getCurrentFrame().f_globals - _locals = self.currentThread.getCurrentFrame().f_locals + _locals = self.currentThread.getCurrentFrameLocals() try: code = compile(arg + '\n', '<stdin>', 'single') exec(code, _globals, _locals) @@ -887,7 +887,7 @@ cf = cf.f_back frmnr -= 1 _globals = cf.f_globals - _locals = cf.f_locals + _locals = self.currentThread.getCurrentFrameLocals() # reset sys.stdout to our redirector (unconditionally) if "sys" in _globals: __stdout = _globals["sys"].stdout