From: Andres Corrada-E. <co...@ci...> - 2001-10-24 19:02:42
|
Hi, I'm building a Java class from Python code using Jython (jythonc properly speaking). My Python code refences an attribute that exists in the Java super class, something like this: class MyClass( JavaSuperClass ): . . . def foo( self ): aStringArray = self.stringArrayInitializedInSuperMethodCalledBefore This fails with an attribute not found error. The traceback shows that the jythonc derived class is trying to find the attribute in the Python side of MyClass, while the attribute is really in the super class in the Java side. What is the proper syntax for calling a super's attribute in Python code that will be turned into a Java class? Thank you. Andres Corrada-Emmanuel Senior Research Fellow Center for Intelligent Information Retrieval University of Massachusetts, Amherst |