[Xapian-tickets] [Xapian] #186: User subclassable classes should be reference counted

Xapian nobody at xapian.org
Fri May 8 15:33:12 BST 2015

#186: User subclassable classes should be reference counted
 Reporter:  richard      |             Owner:  olly
     Type:  defect       |            Status:  assigned
 Priority:  normal       |         Milestone:  1.3.3
Component:  Library API  |           Version:  SVN trunk
 Severity:  normal       |        Resolution:
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  All

Comment (by olly):

 So some experimental hacking later, I have a hand-modified version which
 works for Python and VRPs.

 To make this work we need to call `vrproc.__disown__()` just ''after'' we
 call the C++ `add_valuerangeprocessor()` method, **and** we need to
 `unref()` the C++ vrp object then too (otherwise both the C++ and Python
 objects will end up with one reference and neither will get deleted),
 **but** we need to only do this if the object hasn't already been

 This is going to need a bit of work to get it to happen, but at least we
 now have a plan.

Ticket URL: <http://trac.xapian.org/ticket/186#comment:28>
Xapian <http://xapian.org/>

More information about the Xapian-tickets mailing list