by rtpg · 8y ago · 0 comments
exec(
code_fragment,
frame.f_globals,
frame.f_locals
)
# update locals
ctypes.pythonapi.PyFrame_LocalsToFast(ctypes.py_object(frame), ctypes.c_int(0))
This sets the values back into the right place on the frame you were operating on.https://pydev.blogspot.jp/2014/02/changing-locals-of-frame-f...
No comments yet.