> On Thu, 5 Apr 2007, Martin Reddy wrote:
> > The setAllowLeadingWildcard() function always aborts for me. E.g., the
> > following code causes an abort() to happen within Python and exits the
> > interpreter:
> >
> >  from PyLucene import QueryParser, StandardAnalyzer
> >  parser = QueryParser("Hello World", StandardAnalyzer())
> >  parser.setAllowLeadingWildcard()
> 
> Indeed, the wrappers were declared wrong.
> The correct call now is: parser.setAllowLeadingWildcard(True/False)

Thanks Andi! I've updated lucene.cpp in our install to specify METH_O instead 
of METH_NOARGS in the wrapper and all works great now. Thanks for the quick 
response.

Cheers,

Martin.


---------------------------------------------------------------------------
Martin Reddy                                        Pixar Animation Studios 
                                                    1200 Park Avenue
[EMAIL PROTECTED]                                     Emeryville, CA 94608
http://MartinReddy.net/                             Tel. (510) 922 4093
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to