Commits

Sébastien Martinez  committed d6250e2

_current_frames_2 renamed to current_true_frames

  • Participants
  • Parent commits 4069b4b
  • Branches enhanced_pypy

Comments (0)

Files changed (2)

File pymoult/common/low_level.py

 	sys.settrace_for_thread(thread.ident,trace,True)
 
 def get_current_frame_for_thread(thread):
-	return sys._current_frames_2()[thread.ident]
+	return sys._current_true_frames()[thread.ident]
 
 def get_all_current_frames():
-	return sys._current_frames_2()
+	return sys._current_true_frames()
 
 
 

File pypy-dsu.patch

  
          '_getframe'             : 'vm._getframe', 
          '_current_frames'       : 'currentframes._current_frames', 
-+        '_current_frames_2'       : 'currentframes._current_frames_2', 
++        '_current_true_frames'       : 'currentframes._current_true_frames', 
          'setrecursionlimit'     : 'vm.setrecursionlimit', 
          'getrecursionlimit'     : 'vm.getrecursionlimit', 
          'setcheckinterval'      : 'vm.setcheckinterval', 
 +    f.mark_as_escaped()
 +    return space.wrap(f)
 +
-+def _current_frames_2(space):
-+    """_current_frames() -> dictionary
++def _current_true_frames(space):
++    """_all_current_frames() -> dictionary
 +
 +    Return a dictionary mapping each current thread T's thread id to T's
 +    current stack "frame".  Functions in the traceback module can build the