Lifetime of object in lambda connected to pyqtSignal
The lambda in your example forms a closure. That is, it is a nested function that references objects available in its enclosing scope. Every function that creates a closure keeps a cell object for every item it needs to maintain a reference to. In your example, the lambda creates a closure with references to the … Read more