Return-Path: Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: (qmail 23137 invoked from network); 16 Feb 2011 18:19:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Feb 2011 18:19:42 -0000 Received: (qmail 25068 invoked by uid 500); 16 Feb 2011 18:19:42 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 24975 invoked by uid 500); 16 Feb 2011 18:19:40 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 24967 invoked by uid 99); 16 Feb 2011 18:19:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Feb 2011 18:19:40 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [173.228.80.32] (HELO ovaltofu.org) (173.228.80.32) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Feb 2011 18:19:33 +0000 Received: from [192.168.10.104] (c-98-210-154-104.hsd1.ca.comcast.net [98.210.154.104]) (authenticated bits=0) by ovaltofu.org (8.14.4/8.14.4) with ESMTP id p1GIJ8AU015143 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 16 Feb 2011 10:19:09 -0800 (PST) Message-Id: From: Andi Vajda To: "pylucene-dev@lucene.apache.org" In-Reply-To: <95924.1297877988@parc.com> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPod Mail (7E18) Mime-Version: 1.0 (iPod Mail 7E18) Subject: Re: subclassing Python classes in Java Date: Wed, 16 Feb 2011 10:18:15 -0800 References: <95924.1297877988@parc.com> X-Virus-Checked: Checked by ClamAV on apache.org On Feb 16, 2011, at 9:39, Bill Janssen 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 Andi.. > > In UpLib, I've got a class, uplib.ripper.Ripper, and I'd like to be > able > to create a Java subclass for that in my module. I presume I need a > Java interface for that Python class, but how do I hook the two > together so that the Java subclass can inherit from the Python class? > > Bill