Showing content from http://mail.python.org/pipermail/python-dev/attachments/20070206/a61ef453/attachment.htm below:
Hi All,<br><br>I'm currently trying to change the value for a variable in the debugger using:<br><br>frame = findFrame(thread_id, frame_id)<br>exec '%s=%s' % (attr, expression) in frame.f_globals, frame.f_locals
<br><br>it works well when the frame for the change is the topmost frame, but fails otherwise... <br><br>I found some references speaking about some issue with PyFrame_FastToLocals which made it appear like this was not possible to do... so, basically, is there some way to make this work from python (changing a variable having a given frame) or not?
<br><br>Thanks,<br><br>Fabio<br>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4