Reinitializing the python interpreter form Java
Ype Kingma
ykingma at accessforall.nl
Mon May 28 16:22:33 EDT 2001
"Andre M. Descombes" wrote:
>
> Hi Ype,
>
> I tried your method, but when I have global variables, they don't seem to be
> changing their values after I do the setLocals, even with then copy()
> instruction.
>
> Any Idea what might be happening?
>
No. I would need to see some of your code.
You wrote initially:
>The problem is I would like to execute some functions several times, and I
>would like to be able to save the state of the global variables, so I can
>later restore it (on a different day for example).
I think i misunderstood this. You might be better off using the pickle
module to save/restore python objects for longer periods.
Regards,
Ype
More information about the Python-list
mailing list