Re: [matplotlib-devel] Possible bug in matplotlib.cbook.CallbackRegistry

2011-10-17 Thread Michael Droettboom
Another common solution to this problem is to copy the list of callbacks before iterating over it. Having a simple example would be helpful here so we can experiment with these alternate approaches. Mike On 10/16/2011 09:04 PM, to...@i3dtech.com wrote: > Within matplotlib.cbook.CallbackRegistr

[matplotlib-devel] Possible bug in matplotlib.cbook.CallbackRegistry

2011-10-17 Thread tobin
Within matplotlib.cbook.CallbackRegistry both the connect() and process() methods check for dead references when called. If a reference is dead it deletes it from the callback list. I have found a situation where this presents a problem. First, a "button_press_event" calls the process method()