On Thu, 15 Mar 2007, Ofer Nave wrote:

I'm new to Python.  Am I not understanding how inheritance works here?

No, you're right to be baffled. There is no inheritance here. Like I said earlier, PyLucene doesn't extend Lucene classes, it wraps them. Lucene is
implemented in Java and compiled with gcj to make it look like C++ to Python.

There are a number of extension points in the PyLucene API. These are places where the wrapper APIs are coded to recognize a Python instance as implementing the same (by name) methods of a Lucene Java class and wraps the Python instance with a specific Java extension class that makes the native calls into Python. These classes are implemented in the 'java' subdirectory of PyLucene with the native method implementations in the 'cpp' subdirectory.

Numerous examples (LuceneInAction) and test cases use these. These extension
points were determined by need, LuceneInAction samples and unit tests needs.
There are many more extensions points that could be implemented. They are a fair amount of work so a valid use case is needed for them.

Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to