Getting values from python interpreter from Java
Lichtenstein, Mark (Contractor)
mlichten at harris.com
Fri Apr 25 12:25:00 EDT 2003
I would like to see how to get the value of a local variable from Java.
In Java, I am saving the values of the local dictionary in a PyObject Java
object.
Using a PythonInterpreter object called "interp", I use setLocals and getLocals
methods to
get and restore the local dictionary.
interp.setLocals(localsObject);
interp.getLocals(localsObject);
My question is from Java how does someone go into the PyObject contatining the
locals dictionary to get the value of a local dictionary variable?
Thank you,
Mark Lichtenstein
More information about the Python-list
mailing list