[Xapian-discuss] Python bindings...
James Aylett
james-xapian at tartarus.org
Sat Dec 10 21:03:51 GMT 2005
On Sat, Dec 10, 2005 at 08:05:53AM +0000, Olly Betts wrote:
> I can now run queries with simplesearch.py.
>
> The secret seems to be that the typecheck typemap needs a precedence
> parameter to actually work (I set it to 500, somewhat arbitrarily).
> You mentioned there was a built-in one, so I suspect the problem is
> that ours was being overridden by it. I also found out how to eliminate
> the new/delete pair which avoids a memory leak if an exception is
> thrown.
Wow. I don't remember reading anything about precedences *anywhere* -
it's not in the changes file as far as I can see, and it wasn't in the
manual last time I read it. :-)
> Patch against 0.9.2 attached.
>
> I've not checked this in yet - I want to add a regression test (since
> it seems this used to work but stopped due to changes in SWIG, and we
> definitely want to know if this stops working again) and also make sure
> that the related vector<Query> typemap works too.
Right. I doubt I'll have time to help out here, unfortunately - not
until February, at any rate...
J
--
/--------------------------------------------------------------------------\
James Aylett xapian.org
james at tartarus.org uncertaintydivision.org
More information about the Xapian-discuss
mailing list