19 Aug 2014 19 Aug '14
On Mon, Aug 18, 2014 at 3:37 PM, Daniel Sank firstname.lastname@example.org wrote:
and I send you the Referenceable. Now suppose I do
Now myThingy will be garbage collected.
No, this is simply incorrect. 'del myThingy' simply removes a reference to the object to which myThingy refers.
If and only if that's the last reference (as determined by Python's reference counting), it is deleted. As glyph said, as long as there is an outstanding remote reference, the Broker keeps a Python reference to the object internally, preventing the reference count from reaching zero, preventing the object from being deleted.