More specifically, as far as I get, by setting onDead parameter in the ListenerBase constructor I should be able manage the situation I’m facing.
I don’t know how to set this parameter in my python script.
Here the code for the 2.8 version, that it is the same on 3.X:
Deleted objects are automatically unsubscribed so you should not have to do anything. The code you have is in sufficient to give more detail. Post more code on the pypubsub forum (https://groups.google.com/forum/m/#!forum/pypubsub).
More specifically, as far as I get, by setting onDead parameter in the ListenerBase constructor I should be able manage the situation I’m facing.
I don’t know how to set this parameter in my python script.
Here the code for the 2.8 version, that it is the same on 3.X: