DebugClients/Python/DebugBase.py

branch
6_1_x
changeset 5157
c271375ca534
parent 4685
c749edcea558
child 5164
197acc53a662
diff -r c343f780dc6d -r c271375ca534 DebugClients/Python/DebugBase.py
--- a/DebugClients/Python/DebugBase.py	Sat Sep 10 12:35:05 2016 +0200
+++ b/DebugClients/Python/DebugBase.py	Sat Sep 10 16:29:20 2016 +0200
@@ -117,6 +117,15 @@
         while cf is not None and frmnr > 0:
             cf = cf.f_back
             frmnr -= 1
+        
+        try:
+            if "__pypy__" in sys.builtin_module_names:
+                import __pypy__
+                __pypy__.locals_to_fast(cf)
+                return
+        except Exception:
+            pass
+        
         ctypes.pythonapi.PyFrame_LocalsToFast(
             ctypes.py_object(cf),
             ctypes.c_int(0))

eric ide

mercurial