Control: tag -1 + patch fixed-upstream On Thu, Dec 29, 2016 at 10:11:08PM -0800, Jameson Graef Rollins wrote: > servo:~ $ python -c "import xapian; qp = xapian.QueryParser(); > qp.add_boolean_prefix('tag', 'K', '')" > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/usr/lib/python2.7/dist-packages/xapian/__init__.py", line 10485, in > _queryparser_add_boolean_prefix > return __queryparser_add_boolean_prefix_orig(self, s, proc, exclusive) > TypeError: in method 'QueryParser_add_boolean_prefix', argument 4 of type > 'std::string const *'
I've committed a fix upstream: https://trac.xapian.org/changeset/7a7c948abac86bee3cbb72d557520e30f77c88f6/git I think applying this will have to wait until after stretch though. But I found a better workaround, which is to pass a Unicode string for the grouping parameter. This works with the package currently in testing: $ python -c "import xapian; qp = xapian.QueryParser(); qp.add_boolean_prefix('tag', 'K', u'')" That uses the preferred form, and also works when the grouping parameter isn't an empty string. > Tried to report this issue upstream directly but I couldn't seem to > register an account at trac.xapian.org. Registering should now work reliably - it was a caching bug in the trac account manager plugin. Cheers, Olly