From: Kiran R K. <ki...@al...> - 2001-03-02 12:22:58
|
hi..im trying to call the PythonInterpreter() from within a java app, and run a python program.Since Python does not have *native* support for interfaces, what can I do after importing a java interface? Also,when I import code from java that does use interfaces(for e.g. Vector implements List,Map etc),the following code from java.util import Vector sim=Vector sim.addElement("first.py") throws an error TypeError: addElement(): expected 2 args; got 1 so what do I typecast the first argument to? sim.addElement(Vector,"fist") gives TypeError: addElement(): self arg can't be coerced to (well, it doesnt say what...) any help would be appreciated :-) ciao |