JPython embed question

Randy Heiland heiland at ncsa.uiuc.edu
Fri Dec 22 02:12:40 CET 2000


In the JPython demo/embed example, we find how to create an instance of
a class, e.g.:

  interp.set("foo1", new Foo());
  interp.set("bar1", new Bar());

I'd like to be able to dynamically create an instance of a class - e.g.,

  createInstance(String instName, String className)

thanks,
--Randy




More information about the Python-list mailing list