DebugClients/Python3/DebugBase.py

changeset 5156
5cb4740bd2a9
parent 5140
01484c0afbc6
child 5161
f7b6ded9cc37
--- a/DebugClients/Python3/DebugBase.py	Sat Sep 10 12:35:05 2016 +0200
+++ b/DebugClients/Python3/DebugBase.py	Sat Sep 10 16:15:54 2016 +0200
@@ -116,6 +116,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