How to refer to current Interpreter in script?

larrydu at gmail.com larrydu at gmail.com
Fri Feb 17 13:03:46 EST 2006


Hi,

Please excuse me if this is a dumb question, but I am new to
python/jython and can't figure this out. Basically I have a java class
myClass with a static method myMethod that takes a PythonInterpreter as
a parameter.

Now I write a jython script in which I try to invoke that method with
current interpreter as the argument. How do I get this current
interpreter? The implementation of myMethod can't be changed.

import myClass as mc
mc.myMethod(?)

Thanks in advance for your help!

Larry




More information about the Python-list mailing list