Attaching a live interpreter to a script?
benjamin.kaplan at case.edu
Tue Jan 13 14:33:19 CET 2009
On Tue, Jan 13, 2009 at 2:35 AM, Kannon <neokannon at gmail.com> wrote:
> I'm sure this has come up before, but my google-fu is just not strong
> enough to find it out of 10,000~ posts, and apologies if this is
> What I'd like to do is attach an interpreter to a program running from
> a script (I.E, not something I typed into the live interpreter). It'd
> be an awesome way to debug programs, as well as tweak parameters and
> such at runtime. Ideally, I'd like it to be something in pure python
> so I could throw it into Jython and IronPython as well. (Though, I can
> actually code Java and C#, so implementing it is something I could do
> myself, if needed.) I was thinking maybe something I could throw into
> a tkinter window or similar, but I wasn't able to find anything on how
> to pass stuff directly to the interpreter.
> Any ideas, or if this is even possible would be nice. Thanks in
I don't know exactly what they did, but wxPython has a "widget inspection
tool" that includes such a thing. It lets you manipulate whatever widget is
selected in the tree control above the shell. The widget inspection tool is
in wx/lib/inspection.py and the code for the shell they use is in
wx/py/shell.py. I think it's pure python except for the gui.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list