weakrefs to functions for observer pattern
Alex Martelli
aleax at mail.comcast.net
Thu Nov 3 10:24:13 EST 2005
Michael Schneider <michaelschneider at fuse.net> wrote:
...
> Thank you, I mis-read the docs.
>
> The mistake I made was having was using a weak reference as a key in
> the dictionary.
Rather than using a weakref.WeakKeyDictionary , I guess?
> Weak references will be very useful for me.
>
> I really enjoy python. So many good things have been added to the
> language without taking the fun away :-)
Glad to hear this!
Alex
More information about the Python-list
mailing list