[Xapian-tickets] [Xapian] #341: Python bindings should keep a reference to user-subclassable proxies when registered with consumers/users
Xapian
nobody at xapian.org
Wed Mar 4 17:06:21 GMT 2009
#341: Python bindings should keep a reference to user-subclassable proxies when
registered with consumers/users
-----------------------------+----------------------------------------------
Reporter: james | Owner: richard
Type: defect | Status: assigned
Priority: normal | Milestone: 1.1.1
Component: Xapian-bindings | Version: SVN trunk
Severity: normal | Resolution:
Keywords: | Blockedby:
Platform: All | Blocking:
-----------------------------+----------------------------------------------
Comment(by richard):
I can't think of any other places in the API where it would be useful to
do this, other than for PostingSources being passed into queries. that's
a much more complex job to fix, though doable, because queries can be
combined with each other - you need to modify all the query constructors
to also copy the property across from all the children, and I'm not sure
you can do this without making a big Query proxy class - this would be
quite invasive, and inappropriate to commit at the present time.
It's not such an issue for PostingSources anyway, because all the built-in
ones support clone. It's not possible to implement clone() for ones
implemented in python, though, so it's still worth fixing if we can.
--
Ticket URL: <http://trac.xapian.org/ticket/341#comment:6>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list