17+ results for 'f_lasti' (0 ms)
Not the results you expected?
debug.py (https://bitbucket.org/apratim_ankur/sawari_renewed1.git) Python · 70 lines
skip.py (http://pydbgr.googlecode.com/svn/trunk/) Python · 92 lines
bytecode.py (http://pydbgr.googlecode.com/svn/trunk/) Python · 126 lines
utils.py (https://code.google.com/p/webapp-improved/) Python · 0 lines
line.py (http://pydbgr.googlecode.com/svn/trunk/) Python · 114 lines
einfo.py (https://bitbucket.org/lina_wang_veeva/vone.git) Python · 134 lines
debug.py (https://bitbucket.org/which_linden/eventlet-libevent) Python · 105 lines
program.py (http://pydbgr.googlecode.com/svn/trunk/) Python · 92 lines
currentframes.py
(https://bitbucket.org/pypy/pypy/)
Python · 78 lines
✨ Summary
This code implements a mock version of Python’s _current_frames()
function, which returns a dictionary mapping each current thread to its corresponding stack frame. In PyPy, this function returns fake frame objects instead of actual frames to avoid runtime penalties from JIT compilation. The implementation uses a custom fake_frame
class and a wrapper around the fake_frame
object to create a call stack.
This code implements a mock version of Python’s _current_frames()
function, which returns a dictionary mapping each current thread to its corresponding stack frame. In PyPy, this function returns fake frame objects instead of actual frames to avoid runtime penalties from JIT compilation. The implementation uses a custom fake_frame
class and a wrapper around the fake_frame
object to create a call stack.
ompc_mfunction_poormans.py
(https://bitbucket.org/juricap/ompc/)
Python · 147 lines
✨ Summary
The code generates a wrapper function for existing functions using the mfunction
decorator, which adds documentation and error checking to the original function. It creates a temporary Python file with the modified function source code, executes it, and returns the new function object. The output is a series of print statements demonstrating the usage of two generated functions: coinflip
and add
.
The code generates a wrapper function for existing functions using the mfunction
decorator, which adds documentation and error checking to the original function. It creates a temporary Python file with the modified function source code, executes it, and returns the new function object. The output is a series of print statements demonstrating the usage of two generated functions: coinflip
and add
.
run_trace.py (https://bitbucket.org/ned/coveragepy/) Python · 36 lines
reassembly.py (https://bitbucket.org/fj_/randomscripts) Python · 126 lines
coroutines.py (https://bitbucket.org/jaraco/cpython-issue13540) Python · 196 lines
87 frame = sys._getframe()
88 caller = frame.f_back
89 assert caller.f_lasti >= 0
90 if caller.f_code.co_code[caller.f_lasti] != _YIELD_FROM:
117 gen = getattr(self, 'gen', None)
118 frame = getattr(gen, 'gi_frame', None)
119 if frame is not None and frame.f_lasti == -1:
120 msg = '%r was never yielded from' % self
121 tb = getattr(self, '_source_traceback', ())