From: Harlan H. <ha...@ot...> - 2001-05-21 21:56:59
|
> Date: Fri, 18 May 2001 23:21:11 -0400 > From: D-Man <ds...@ri...> > You only need the @sig stuff if you want to access the _classes_ in > the python module from a java class. The limitation to classes only > (and not module-level stuff) is a result of java. So, what i've ended up doing is writing a small bit of java for the module level stuff.. some constants and a few static methods. i have methods that return the result of calling the constructors of the classes i have, which are written in python and then jythonc'd. This seems to work pretty well, but I had to make the constructors of the classes accessible from java, which means i needed to make them inherit from a java class. just having them inherit from Object didnt seem to work, so they inherit from the classes i'm trying to wrap, which isnt exactly what should happen, but it works OK. ---- ha...@ot... x293 http://65.0.250.62/ |