From: Jerome R. <jer...@us...> - 2004-07-21 08:45:25
|
Hello, I am trying to create a java bean from an embedded PythonInterpreter. test.py: from java.lang import Object class Test(Object): def setName(self, aName): "@sig public void setName(String degrees)" self.name=aName def getName(self): "@sig public String getName()" return self.name def toString(self): return 'Python test' I compiled this file using jythonc and as expected, the created .java/.class files includes the setName and getName methods. When I try to import the test.py module from a java application (in an embedded PythonInterpreter) the created class (org.python.proxies.test$Test$0) do not include setName and getName. It seems that the interpreter do not recognize the @sig comments. Is there's a way to change the PythonInterpreter behaviour to make it understand @sig comments ? Regards, Jerome. |