18 Jul 16:17
Does a sync_trait connection prevent an object from being garbage collected?
From: Alexander Michael <lxander.m@...>
Subject: Does a sync_trait connection prevent an object from being garbage collected?
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-07-18 14:19:05 GMT
Subject: Does a sync_trait connection prevent an object from being garbage collected?
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-07-18 14:19:05 GMT
If after setting up a sync_trait pair one side of the sync (the one past in the argument to the sync_trait method) leaves scope with nothing referencing it other than the sync_trait event handling (or even gets explicitly deleted with the del operator) does the object get garbage collected and the sync_trait connection removed? Or does the sync_trait setup keep it dangling until I explicitly remove the sync'ing with another call to sync_trait with remove=True? I'm trying to figure out how explicit I need to be about setting up and tearing down some wiring in my app in response to user interactions that essentially reconfigure the object relationships. Thanks, Alex
RSS Feed