Design thought for callbacks

Marko Rauhamaa marko at pacujo.net
Sat Feb 21 12:08:11 EST 2015


Steven D'Aprano <steve+comp.lang.python at pearwood.info>:

> Other than that, I cannot see how calling a function which has *not*
> yet been garbage collected can fail, just because the only reference
> still existing is a weak reference.

Maybe the logic of the receiving object isn't prepared for the callback
anymore after an intervening event.

The problem then, of course, is in the logic and not in the callbacks.


Marko



More information about the Python-list mailing list