--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/SqqNPsbu8DsJ.
To post to this group, send email to sqlal...@googlegroups.com.
To unsubscribe from this group, send email to sqlalchemy+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
>
>
> Not sure what you mean exactly here, but if the point is: "why I want
> to use 'remove'". It's just that when I destroy the GUI widget that
> displays data I'd like to remove the listener to be sure no reference
> tries to keep my object in memory. As of now I see that callbacks are
> still called.
ah OK so I'd build a system of indirection whereby you register a single event function with SQLAlchemy, then you have a simple "add/remove" system for that. The event listener would access the current list of GUI listeners, and that's the list you mutate.