lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Janssen <jans...@parc.com>
Subject Re: subclassing Python classes in Java
Date Wed, 16 Feb 2011 11:08:42 GMT
Andi Vajda <vajda@apache.org> wrote:

> On Feb 16, 2011, at 9:39, Bill Janssen <janssen@parc.com> wrote:
> 
> > How do I subclass a Python class in a JCC-wrapped Java module?
> 
>  - define a Java class with native methods
>  - using the usual "extension" tricks have a Python class implement
> these native methods
>  - define a subclass of that Java class so as to inherit these native
> implementations

Yes, that's what I thought.  Almost too painful to consider, I'm afraid.

I was thinking of a more dynamic solution, using reflection, but that
seems a bit error-prone.  Problematic contrast beween the cheerful
dynamism of Python and the stern determinism of Java.

Bill


Mime
View raw message