Message313

Author nobody
Recipients
Date 2001-05-29.19:38:42
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I had the following pattern in my code:

from javax.swing.tree import *
from a import * # java package containing A


class B (A, TreeModelListener):
   def __init__(self):
       A.__init__(self)
       ...
   ... 
   # including methods implementing TreeModelListener


this would cause an 'invalid self parameter'
exception to be thrown at the A.__init__
call for the jythonc compiled code,
but ran under the interpreter.
Creating a separate class for the listener
that just wrapped the B instance solved the problem.

I know that inheriting from multiple Java classes
is disallowed but I think class and interfaces
should be OK since it is supported in Java.
BTW. the jython FAQ is now empty

thanks
Daniel Mahler
History
Date User Action Args
2008-02-20 17:16:50adminlinkissue428414 messages
2008-02-20 17:16:50admincreate