[pylucene-dev] can't override QueryParser.parse()

Andi Vajda vajda at osafoundation.org
Wed Nov 14 09:42:25 PST 2007


On Wed, 14 Nov 2007, Bill Janssen wrote:

> But I still have the problem reflected in the stack trace with GDB:
> the "value" being extracted is not of the Python type JavaError (it's
> of the Python type "Throwable"), and doesn't have the method
> "getJavaException", while the "exc" *is* of type JavaError.  Either
> the code in PyErr_SetJavaError() isn't correct, or the code in
> throwPythonError() isn't correct.

Quite possibly so. If your contention is correct, then change line 565 in 
functions.cpp to call 'getJavaException' on 'exc' instead  of 'value'.

If you send me code that reproduces the problem, I can get to the bottom of 
this.

Andi..


More information about the pylucene-dev mailing list