From: Samuele P. <ped...@bl...> - 2004-01-13 13:22:47
|
At 13:52 13.01.2004 +0100, Nicola de Candussio wrote: >Hi all, > >I followed the instructions mentioned in the 5.2 point of the Jython faq >(Emulating Jython object attribute access with a Java class) and >redefined the __findattr__ method. >It worked just fine until .... I inherited the java class in a jython one >which gave me an unexpected result: the properties defined in the java >class are still accessible BUT only from outside the inherited the jython >class i.e. I cannot get the value of the attribute of the base class >within the inherited jython class ... nor by using the notation >self.property of by referring directly to the base class... >I include the code of the two classes there is no real designed support for subclassing PyObject subclasses. |