B
Bryan
there must be something i don't understand about WeakKeyDictionary and WeakValueDictionary. i had expected the last
line to be empty because i thought i deleted the last strong reference to variable "a". what am i misunderstanding?
thanks,
bryan
line to be empty because i thought i deleted the last strong reference to variable "a". what am i misunderstanding?
>>> d = weakref.WeakValueDictionary()
>>> a = A()
>>> d[1] = a
>>> d.items()[(1 said:>>> del a
>>> d.items()[(1 said:
thanks,
bryan