Comment 14 for bug 941337

Revision history for this message
Christian Meyer (chrisime) wrote : Re: [Bug 941337] Re: functions bound to self-updating Control properties get called even after Display is removed

AFAIK the destructor __del__ isn't necessarily called in python.

2012/3/1 Ronny Lorenz <email address hidden>:
> Just another thought about the bugfix...
> I think a more clean way of getting rid of the wrapped controls is to introduce a __del__ destructor in the ControlWrapper class. This destructor can go through all stored controls and purge them. Then scripting.Script is able to just go through its list of stored wrappers and delete them one by one on call of the stop() method.