[pylucene-dev] can't override QueryParser.parse()
Bill Janssen
janssen at parc.com
Wed Nov 14 10:38:40 PST 2007
> > 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'.
Actually, I misspoke. "exc" is of type "type" -- it's the "JavaError"
type object. I think the right fix is to not call "getJavaException"
at all; you've got the Throwable right there in your hand already.
Bill
More information about the pylucene-dev
mailing list