Alexander Michael | 18 Jul 16:17

Does a sync_trait connection prevent an object from being garbage collected?

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

Gmane