GNOME Bugzilla – Bug 471391
Allow accessing reference count data
Last modified: 2008-08-18 21:09:21 UTC
We have very little information about a CORBA object's life cycle in python. The following patch will allow examining the current reference count of a given object. This is useful when an application has data associated with a given CORBA object, and it needs indication as to when it could be disposed. See bug 469443.
Created attachment 94536 [details] [review] Proposed patch This adds a method to a CORBA object called _get_refcount(). Which does pretty much that.
While I don't mind adding a method to retrieve the refcount, I don't think _get_refcount is the best method name for that. The name refcount is too overloaded to be used without further context. There is a python wrapper refcount, a ORBit stub (CORBA_Object) refcount, sometimes Bonobo refcount... I would suggest a name like _get_orbit_object_refcount(). 'orbit' in the name makes it clear it is an ORBit extension, not standard CORBA, orbit_object makes it clear it is about the corba object.
Created attachment 94564 [details] [review] Proposed patch Changed to proposed method name.
Could you please commit to svn trunk? Thanks!
Eitan, Gustavo: *ping* - patch accepted but rotting.
I committed for Gustavo. Sending ChangeLog Sending src/pycorba-object.c Transmitting file data .. Committed revision 159.